Skip to content

Commit

Permalink
Merge branch 'canary' into luka/next-3188-enoent-error-ignored-in-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
lukahartwig committed May 5, 2024
2 parents c7384ae + f713c95 commit dddd6c8
Show file tree
Hide file tree
Showing 110 changed files with 1,781 additions and 1,105 deletions.
8 changes: 4 additions & 4 deletions .github/actions/next-repo-info/dist/issues/index.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .github/actions/next-repo-info/dist/prs/index.mjs

Large diffs are not rendered by default.

19 changes: 14 additions & 5 deletions .github/actions/next-repo-info/src/popular-issues.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function generateBlocks(issues) {
type: 'section',
text: {
type: 'mrkdwn',
text: '*A list of the top 15 issues sorted by most :+1: 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)._',
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._',
},
},
{
Expand All @@ -21,9 +21,9 @@ function generateBlocks(issues) {
let text = ''

issues.forEach((issue, i) => {
text += `${i + 1}. [<${issue.html_url}|#${issue.number}>, :+1: ${
issue.reactions['+1']
}, ${formattedDate(issue.created_at)}]: ${issue.title}\n`
text += `${i + 1}. [<${issue.html_url}|#${issue.number}>, ${
issue.reactions.total_count
} reactions, ${formattedDate(issue.created_at)}]: ${issue.title}\n`
})

blocks.push({
Expand All @@ -50,10 +50,19 @@ async function run() {
order: 'desc',
per_page: 15,
q: `repo:${owner}/${repo} is:issue is:open created:>=${ninetyDaysAgo()}`,
sort: 'reactions-+1',
sort: 'reactions',
})

if (data.items.length > 0) {
data.items.forEach(async (item) => {
await octoClient.rest.issues.addLabels({
owner,
repo,
issue_number: item.number,
labels: ['linear: next'],
})
})

await slackClient.chat.postMessage({
blocks: generateBlocks(data.items),
channel: '#team-next-js',
Expand Down
12 changes: 6 additions & 6 deletions .github/actions/next-repo-info/src/popular-prs.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ function generateBlocks(prs) {
]

prs.forEach((pr, i) => {
if (pr.reactions['+1'] > 1) {
text += `${i + 1}. [<${pr.html_url}|#${pr.number}>, :+1: ${
pr.reactions['+1']
}, ${formattedDate(pr.created_at)}]: ${pr.title}\n`
if (pr.reactions.total_count > 1) {
text += `${i + 1}. [<${pr.html_url}|#${pr.number}>, ${
pr.reactions.total_count
} reactions, ${formattedDate(pr.created_at)}]: ${pr.title}\n`
count++
}
})
Expand All @@ -27,7 +27,7 @@ function generateBlocks(prs) {
type: 'section',
text: {
type: 'mrkdwn',
text: `*A list of the top ${count} PRs sorted by most :+1: reactions (> 1) 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-prs.mjs|action> will run every Monday at 10AM UTC (6AM EST)._`,
text: `*A list of the top ${count} PRs sorted by the most reactions (> 1) 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-prs.mjs|action> will run every Monday at 10AM UTC (6AM EST)._`,
},
})

Expand Down Expand Up @@ -55,7 +55,7 @@ async function run() {
order: 'desc',
per_page: 15,
q: `repo:${owner}/${repo} -is:draft is:pr is:open created:>=${ninetyDaysAgo()}`,
sort: 'reactions-+1',
sort: 'reactions',
})

if (data.items.length > 0) {
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update_fonts_data.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: update-font-data
name: Update Font Data

on:
# Run every every day at midnight https://crontab.guru/#0_0_*_*_*/1
Expand Down
70 changes: 35 additions & 35 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dddd6c8

Please sign in to comment.