Skip to content

Commit 2bbeab8

Browse files
authored
chore(github-workflow): add linear: next labels to sync popular issues to linear (vercel#65288)
## Why? Helps us triage the most popular issues better by also having these in linear. Closes NEXT-3290
1 parent 91444df commit 2bbeab8

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

.github/actions/next-repo-info/dist/issues/index.mjs

Lines changed: 4 additions & 4 deletions
Large diffs are not rendered by default.

.github/actions/next-repo-info/src/popular-issues.mjs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function generateBlocks(issues) {
1010
type: 'section',
1111
text: {
1212
type: 'mrkdwn',
13-
text: '*A list of the top 15 issues sorted by the most reactions over the last 90 days.*\n_Note: This :github2: <https://github.com/vercel/next.js/blob/canary/.github/workflows/popular.yml|workflow> → <https://github.com/vercel/next.js/blob/canary/.github/actions/next-repo-info/src/popular-issues.mjs|action> will run every Monday at 10AM UTC (6AM EST)._',
13+
text: '*A list of the top 15 issues sorted by the most reactions over the last 90 days.*\n_Note: This :github2: <https://github.com/vercel/next.js/blob/canary/.github/workflows/popular.yml|workflow> → <https://github.com/vercel/next.js/blob/canary/.github/actions/next-repo-info/src/popular-issues.mjs|action> will run every Monday at 10AM UTC (6AM EST). These issues are automatically synced to Linear._',
1414
},
1515
},
1616
{
@@ -54,6 +54,15 @@ async function run() {
5454
})
5555

5656
if (data.items.length > 0) {
57+
data.items.forEach(async (item) => {
58+
await octoClient.rest.issues.addLabels({
59+
owner,
60+
repo,
61+
issue_number: item.number,
62+
labels: ['linear: next'],
63+
})
64+
})
65+
5766
await slackClient.chat.postMessage({
5867
blocks: generateBlocks(data.items),
5968
channel: '#team-next-js',

0 commit comments

Comments
 (0)