Set commits analysis case-insenstive #338

This commit is contained in:
lowlighter
2021-05-28 23:48:49 +02:00
parent 6c205f768f
commit 559d0f0102
2 changed files with 5 additions and 4 deletions

View File

@@ -41,7 +41,7 @@ export default async function({login, data, rest, imports, q, account}, {enabled
...await Promise.allSettled(
commits
.flatMap(({payload}) => payload.commits)
.filter(({author}) => data.shared["commits.authoring"].filter(authoring => author?.email?.includes(authoring)||author?.name?.includes(authoring)).length)
.filter(({author}) => data.shared["commits.authoring"].filter(authoring => author?.email?.toLocaleLowerCase().includes(authoring)||author?.name?.toLocaleLowerCase().includes(authoring)).length)
.map(async commit => (await rest.request(commit)).data.files),
),
]