Skip to content

Commit

Permalink
feat(queries): add titles for PRs/issues
Browse files Browse the repository at this point in the history
To implement what I suggested on
#112 (comment) (ie. adding the list
of PR titles and issue titles to the relevant parts of the generated data).
  • Loading branch information
Berkmann18 committed May 26, 2023
1 parent 8445110 commit 09a4d2b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/queries.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ const mergeExtendedContributions = xs => {
labels.forEach(label => p.labels.add(label))
}
p.count += x.count
p.titles.push(x.title)
} else {
m.set(key, {
// Poor man's clone
Expand All @@ -198,7 +199,8 @@ const mergeExtendedContributions = xs => {
url: x.author.url,
count: x.count,
email: x.author.email,
labels: new Set(labels)
labels: new Set(labels),
titles: [x.title]
})
}
}
Expand Down

0 comments on commit 09a4d2b

Please sign in to comment.