Improves commits ownership filtering #338

This commit is contained in:
lowlighter committed 2021-05-28 19:07:17 +02:00
1 parent bf3284c36d
commit 44e1a8417a
2 files changed
+6 -3

No files matched your search

+2 -1
View File
@@ -40,7 +40,8 @@ export default async function({login, data, rest, imports, q, account}, {enabled
const patches = [
...await Promise.allSettled(
commits
.flatMap(({payload}) => payload.commits).map(commit => commit.url)
.flatMap(({payload}) => payload.commits)
.filter(({author}) => data.shared["commits.authoring"].filter(authoring => author.email.includes(authoring)||author.name.includes(authoring)).length)
.map(async commit => (await rest.request(commit)).data.files),
),
]