mirror of
https://github.com/zed-industries/zed.git
synced 2026-06-01 03:14:56 +07:00
Fix congratsbot (#38013)
We need a PAT to have permission to check team information. Also, the COAUTHOR_TEMPLATES didn't feel quite right. Skipping this for now. Release Notes: - N/A
This commit is contained in:
parent
3cb3f01406
commit
7a83a7fbd0
1 changed files with 1 additions and 10 deletions
11
.github/workflows/congrats.yml
vendored
11
.github/workflows/congrats.yml
vendored
|
|
@ -15,7 +15,7 @@ jobs:
|
|||
id: check
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
github-token: ${{ secrets.CONGRATSBOT_GITHUB_TOKEN }}
|
||||
script: |
|
||||
const { data: prs } = await github.rest.repos.listPullRequestsAssociatedWithCommit({
|
||||
owner: context.repo.owner,
|
||||
|
|
@ -53,14 +53,5 @@ jobs:
|
|||
uses: withastro/automation/.github/workflows/congratsbot.yml@main
|
||||
with:
|
||||
EMOJIS: 🎉,🎊,🧑🚀,🥳,🙌,🚀,🦀,🔥,🚢
|
||||
COAUTHOR_TEMPLATES: >
|
||||
[
|
||||
"Thank you for making Zed better, <names>! In Rust we trust!",
|
||||
"Successfully moved this PR into main! No lifetime errors here, thanks <names>!",
|
||||
"Ferris approves! Thanks <names>!",
|
||||
"Crab rave time! Code from <names> has been oxidized and merged!",
|
||||
"The borrow checker is happy, and so are we! Welcome to the cargo club, <names>!",
|
||||
"Crabs can live up to 100 years, but this PR from <names> will live forever in our git history!"
|
||||
]
|
||||
secrets:
|
||||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_CONGRATS }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue