-
Notifications
You must be signed in to change notification settings - Fork 27.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'canary' into kdy1/eval-more
- Loading branch information
Showing
1,296 changed files
with
31,840 additions
and
18,340 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -596,6 +596,30 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | |
THE SOFTWARE. | ||
|
||
|
||
debug | ||
MIT | ||
(The MIT License) | ||
|
||
Copyright (c) 2014-2017 TJ Holowaychuk <[email protected]> | ||
Copyright (c) 2018-2021 Josh Junon | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software | ||
and associated documentation files (the 'Software'), to deal in the Software without restriction, | ||
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, | ||
subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial | ||
portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT | ||
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | ||
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
|
||
|
||
|
||
delayed-stream | ||
MIT | ||
Copyright (c) 2011 Debuggable Limited <[email protected]> | ||
|
@@ -800,6 +824,31 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | |
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
|
||
|
||
ms | ||
MIT | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2016 Zeit, Inc. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
|
||
|
||
nextjs-project | ||
The MIT License (MIT) | ||
|
||
|
@@ -956,6 +1005,31 @@ Felix Geisendörfer ([email protected]) | |
THE SOFTWARE. | ||
|
||
|
||
slack-block-builder | ||
MIT | ||
MIT License | ||
|
||
Copyright (c) 2020 Ray East | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
|
||
|
||
tunnel | ||
MIT | ||
The MIT License (MIT) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
// @ts-check | ||
import { setFailed, info } from '@actions/core' | ||
import { context, getOctokit } from '@actions/github' | ||
import { WebClient } from '@slack/web-api' | ||
import { BlockCollection, Divider, Section } from 'slack-block-builder' | ||
import { formattedDate, ninetyDaysAgo } from '../lib/util.mjs' | ||
|
||
async function run() { | ||
try { | ||
if (!process.env.GITHUB_TOKEN) throw new TypeError('GITHUB_TOKEN not set') | ||
if (!process.env.SLACK_TOKEN) throw new TypeError('SLACK_TOKEN not set') | ||
|
||
const octoClient = getOctokit(process.env.GITHUB_TOKEN) | ||
const slackClient = new WebClient(process.env.SLACK_TOKEN) | ||
|
||
const { owner, repo } = context.repo | ||
|
||
const { data: prs } = await octoClient.rest.search.issuesAndPullRequests({ | ||
order: 'desc', | ||
per_page: 15, | ||
q: `repo:${owner}/${repo} -is:draft is:pr is:open created:>=${ninetyDaysAgo()}`, | ||
sort: 'reactions', | ||
}) | ||
|
||
if (prs.items.length > 0) { | ||
let text = '' | ||
let count = 0 | ||
|
||
prs.items.forEach((pr, i) => { | ||
if (pr.reactions) { | ||
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++ | ||
} | ||
} | ||
}) | ||
|
||
const blocks = BlockCollection([ | ||
Section({ | ||
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-actions/src/popular-prs.ts|action> will run every Monday at 10AM UTC (6AM EST)._`, | ||
}), | ||
Divider(), | ||
Section({ | ||
text, | ||
}), | ||
]) | ||
|
||
await slackClient.chat.postMessage({ | ||
blocks, | ||
channel: '#next-info', | ||
icon_emoji: ':github:', | ||
username: 'GitHub Notifier', | ||
}) | ||
|
||
info(`Posted to Slack!`) | ||
} else { | ||
info(`No popular PRs.`) | ||
} | ||
} catch (error) { | ||
setFailed(error) | ||
} | ||
} | ||
|
||
run() |
Oops, something went wrong.