Skip to content

Commit 09a4d2b

Browse files
committed
feat(queries): add titles for PRs/issues
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).
1 parent 8445110 commit 09a4d2b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/queries.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ const mergeExtendedContributions = xs => {
190190
labels.forEach(label => p.labels.add(label))
191191
}
192192
p.count += x.count
193+
p.titles.push(x.title)
193194
} else {
194195
m.set(key, {
195196
// Poor man's clone
@@ -198,7 +199,8 @@ const mergeExtendedContributions = xs => {
198199
url: x.author.url,
199200
count: x.count,
200201
email: x.author.email,
201-
labels: new Set(labels)
202+
labels: new Set(labels),
203+
titles: [x.title]
202204
})
203205
}
204206
}

0 commit comments

Comments
 (0)