Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: automatically lock old discussions #1033

Merged
merged 1 commit into from
Mar 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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._
Loading