Skip to content

Commit

Permalink
ci: autolock closed issues and PRs after 30 days (#6398)
Browse files Browse the repository at this point in the history
Old issues and PRs occasionally get comments well after they have been
closed. These comments can lead to community frustration, as closed
issues and PRs aren't actively monitored.

This commit introduces a new CI job to automatically lock closed issues
and PRs after 30 days of inactivity. A `frozen-due-to-age` label is
added to denote why the issue has been locked.

This CI job is deliberately configured to silently close issues without
adding a comment to avoid notification noise for maintainers; adding a
label takes the place of a comment.
  • Loading branch information
rfratto authored Feb 20, 2024
1 parent 781dfe8 commit a44cd3c
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/autolock.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Lock closed issues and PRs
on:
workflow_dispatch: {}
schedule:
- cron: '0 0 * * *'

permissions:
issues: write
pull-requests: write
discussions: write

concurrency:
group: lock-threads

jobs:
action:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v5
with:
pr-inactive-days: 30
issue-inactive-days: 30
add-issue-labels: 'frozen-due-to-age'
add-pr-labels: 'frozen-due-to-age'
process-only: 'issues, prs'

0 comments on commit a44cd3c

Please sign in to comment.