fix(plugins/code,habits,languages): support basic login as authoring (#650)

This commit is contained in:
Simon Lecoq authored and GitHub committed 2021-11-03 23:19:32 -04:00
1 parent f873920871
commit 23f0ba8e0b
3 files changed
+4 -3

No files matched your search

+1 -1
View File
@@ -86,7 +86,7 @@ export async function recent({login, data, imports, rest, account}, {skipped = [
...await Promise.allSettled(
commits
.flatMap(({payload}) => payload.commits)
.filter(({author}) => data.shared["commits.authoring"].filter(authoring => author?.email?.toLocaleLowerCase().includes(authoring)||author?.name?.toLocaleLowerCase().includes(authoring)).length)
.filter(({author}) => data.shared["commits.authoring"].filter(authoring => author?.login?.toLocaleLowerCase().includes(authoring)||author?.email?.toLocaleLowerCase().includes(authoring)||author?.name?.toLocaleLowerCase().includes(authoring)).length)
.map(commit => commit.url)
.map(async commit => (await rest.request(commit)).data),
)