Skip to content

Commit 3ec14e1

Browse files
committed
fix: notable not showing users for user-owned repositories
1 parent 366f8b9 commit 3ec14e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/plugins/notable/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export default async function({login, q, imports, rest, graphql, data, account,
109109
console.debug(`metrics/compute/${login}/plugins > notable > aggregating results`)
110110
const aggregated = new Map()
111111
for (const {name, handle, avatar, organization = handle.split("/").shift() ?? "", stars, ..._extras} of contributions) {
112-
const key = repositories ? handle : name
112+
const key = !organization || repositories ? handle : name
113113
if (aggregated.has(key)) {
114114
const aggregate = aggregated.get(key)
115115
aggregate.aggregated++

0 commit comments

Comments
 (0)