Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove pr_approved workflow & update popular_issues workflow #60584

Merged
merged 6 commits into from
Jan 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/next-repo-info/dist/issues/index.mjs

Large diffs are not rendered by default.

17 changes: 0 additions & 17 deletions .github/actions/next-repo-info/dist/prs/index.mjs

This file was deleted.

989 changes: 0 additions & 989 deletions .github/actions/next-repo-info/dist/prs/licenses.txt

This file was deleted.

3 changes: 1 addition & 2 deletions .github/actions/next-repo-info/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"private": true,
"description": "Notify Next.js team about pending PRs and popular issues",
"scripts": {
"build-issues": "ncc build src/popular-issues.mjs -m -o dist/issues --license licenses.txt",
"build-prs": "ncc build src/pr-approved.mjs -m -o dist/prs --license licenses.txt"
"build-issues": "ncc build src/popular-issues.mjs -m -o dist/issues --license licenses.txt"
},
"dependencies": {
"@actions/core": "^1.10.1",
Expand Down
10 changes: 6 additions & 4 deletions .github/actions/next-repo-info/src/popular-issues.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,18 @@ function generateBlocks(issues) {
type: 'section',
text: {
type: 'mrkdwn',
text: 'A list of the top 15 issues sorted by most :+1: reactions over the last 30 days.*\n_Note: This :github: workflow will run every Monday at 1PM UTC (9AM EST)._',
text: '*A list of the top 15 issues sorted by most :+1: reactions over the last 30 days.*\n_Note: This :github2: workflow will run every Monday at 1PM UTC (9AM EST)._',
},
},
{
type: 'divider',
},
]
let text = ''
issues.forEach((issue) => {
text += `• <${issue.html_url}|#${issue.number}>: ${issue.title}\n`
issues.forEach((issue, i) => {
text += `${i + 1}. [<${issue.html_url}|#${issue.number}>, :+1: ${
issue.reactions['+1']
}]: ${issue.title}\n`
})
blocks.push({
type: 'section',
Expand Down Expand Up @@ -57,7 +59,7 @@ async function run() {
if (data.items.length > 0) {
await slackClient.chat.postMessage({
blocks: generateBlocks(data.items),
channel: '#next-js-repo-updates',
channel: '#team-next-js',
icon_emoji: ':github:',
username: 'GitHub Notifier',
})
Expand Down
37 changes: 0 additions & 37 deletions .github/actions/next-repo-info/src/pr-approved.mjs

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/pull_request_approved.yml

This file was deleted.

Loading