forked from vercel/next.js
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use github action instead of bot (vercel#33718)
* fix: use github action instead of bot * add personal access tokens to avoid rate limiting * Update .github/workflows/lock.yml Co-authored-by: Steven <steven@ceriously.com> * add cron comments Co-authored-by: Steven <steven@ceriously.com>
- Loading branch information
Showing
3 changed files
with
27 additions
and
6 deletions.
There are no files selected for viewing
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,24 @@ | ||
name: 'Lock Threads' | ||
|
||
on: | ||
schedule: | ||
# This runs every hour: https://crontab.guru/every-1-hour | ||
- cron: '0 * * * *' | ||
workflow_dispatch: | ||
|
||
permissions: | ||
issues: write | ||
pull-requests: write | ||
|
||
concurrency: | ||
group: lock | ||
|
||
jobs: | ||
action: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: dessant/lock-threads@v3 | ||
github-token: ${{ secrets.LOCK_TOKEN }} | ||
issue-inactive-days: 30 | ||
issue-comment: 'This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.' | ||
pr-inactive-days: 30 |
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