Skip to content

Commit

Permalink
CI: automatically lock old discussions (#1033)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmercm authored Mar 22, 2024
1 parent 950f352 commit d02725a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/gh-lock-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
permissions:
issues: write
pull-requests: write
discussions: write

jobs:
action:
Expand All @@ -16,15 +17,25 @@ jobs:
- uses: dessant/lock-threads@v5
with:
github-token: ${{ github.token }}

issue-inactive-days: '30'
issue-comment: |
## :lock: Inactive issue lock
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.
_Comment generated by the [${{ github.workflow }}](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}) workflow._
pr-inactive-days: '30'
pr-comment: |
## :lock: Inactive pull request lock
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.
_Comment generated by the [${{ github.workflow }}](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}) workflow._
discussion-inactive-days: '90'
exclude-any-discussion-labels: 'ongoing'
discussion-comment: |
## :lock: Inactive discussion lock
This discussion has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
_Comment generated by the [${{ github.workflow }}](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}) workflow._

0 comments on commit d02725a

Please sign in to comment.