Skip to content

Commit

Permalink
Add lock workflow to lock closed and stale issues/PRs (#7449)
Browse files Browse the repository at this point in the history
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
trevor-scheer committed Mar 15, 2023
1 parent 26e2ff8 commit b444753
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/lock.yml
@@ -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.

0 comments on commit b444753

Please sign in to comment.