-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add lock workflow to lock closed and stale issues/PRs (#7449)
Copied from apollographql/apollo-client#10500 Note: this only _locks_ PRs and issues which have already been closed. This does not autoclose anything.
- Loading branch information
1 parent
26e2ff8
commit b444753
Showing
1 changed file
with
34 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: 'Lock Threads' | ||
|
||
on: | ||
schedule: | ||
- cron: '0 * * * *' | ||
|
||
permissions: {} | ||
jobs: | ||
lock: | ||
permissions: | ||
issues: write # to lock issues (dessant/lock-threads) | ||
pull-requests: write # to lock PRs (dessant/lock-threads) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: dessant/lock-threads@v4 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
issue-inactive-days: '30' | ||
exclude-any-issue-labels: '💬 discussion' | ||
# issue-comment: > | ||
# This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. | ||
|
||
# Please note this issue tracker is not a help forum. We recommend using [StackOverflow](https://stackoverflow.com/questions/tagged/apollo-server) or our [discord server](https://discord.gg/graphos) for questions. | ||
|
||
pr-inactive-days: '30' | ||
exclude-any-pr-labels: '💬 discussion' | ||
# pr-comment: > | ||
# This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. | ||
|
||
# Please note this issue tracker is not a help forum. We recommend | ||
# using | ||
# [StackOverflow](https://stackoverflow.com/questions/tagged/apollo-server) | ||
# or our [discord server](https://discord.gg/graphos) for questions. |