From 09a4d2bc8756f3c1be60040f0dd7fe8997997b9a Mon Sep 17 00:00:00 2001 From: Berkmann18 Date: Fri, 26 May 2023 16:30:18 +0100 Subject: [PATCH] feat(queries): add titles for PRs/issues To implement what I suggested on https://github.com/mntnr/name-your-contributors/pull/112#discussion_r1199836300 (ie. adding the list of PR titles and issue titles to the relevant parts of the generated data). --- src/queries.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/queries.js b/src/queries.js index 66ced3d..dbb844a 100644 --- a/src/queries.js +++ b/src/queries.js @@ -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 @@ -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] }) } }