Skip to content

Commit

Permalink
enable auto close/lock
Browse files Browse the repository at this point in the history
  • Loading branch information
jertel committed Feb 13, 2024
1 parent c3597ce commit 0fe0185
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/lock-threads.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: 'Lock Threads'

on:
schedule:
- cron: '30 * * * *'
workflow_dispatch:

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

concurrency:
group: lock-threads

jobs:
close-threads:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v5
with:
days-before-stale: 30
days-before-close: 14
stale-issue-message: "This issue is stale because it has been open for 30 days with no activity."
close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale."
stale-pr-message: "This PR is stale because it has been open for 30 days with no activity."
close-pr-message: "This PR was closed because it has been inactive for 14 days since being marked as stale."
exempt-issue-assignees: true

lock-threads:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v5
with:
discussion-inactive-days: 14
issue-inactive-days: 30
pr-inactive-days: 60

0 comments on commit 0fe0185

Please sign in to comment.