ref(plugins): centralize skip and ignore filters (#1238)
This commit is contained in:
@@ -51,7 +51,7 @@ export default async function({login, q, imports, data, rest, graphql, queries,
|
||||
//Compute contributors and contributions
|
||||
let contributors = {}
|
||||
for (const {author: {login, avatar_url: avatar}, commit: {message = "", author: {email = ""} = {}}} of commits) {
|
||||
if ((!login) || (ignored.includes(login)) || (ignored.includes(email))) {
|
||||
if ((!login) || (!imports.filters.text(login, ignored)) || (!imports.filters.text(email, ignored))) {
|
||||
console.debug(`metrics/compute/${login}/plugins > contributors > ignored contributor "${login}"`)
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user