Skip to content

Commit

Permalink
split up close/lock schedules
Browse files Browse the repository at this point in the history
  • Loading branch information
jertel committed Mar 14, 2024
1 parent fc5253c commit c825ba1
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/close-threads.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: 'Close Threads'

on:
schedule:
- cron: '50 0 * * *'
workflow_dispatch:

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

concurrency:
group: close-threads

jobs:
close-threads:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v5
with:
days-before-issue-stale: 180
days-before-issue-close: 365
stale-issue-message: "This issue is stale because it has been open for 6 months with no activity. Stale issues convey that the issue, while important to someone, is not critical enough for the author, or other community members to work on, sponsor, or otherwise shepherd the issue through to a resolution."
close-issue-message: "This issue was closed because it has been inactive for over a year since being marked as stale. It will be automatically locked after an additional 30 days, after which no further commenting will be available."
days-before-pr-stale: 30
days-before-pr-close: 30
stale-pr-message: "This PR is stale because it has been open for 30 days with no activity. The longer a PR remains stale the more out of date with the main branch it becomes."
close-pr-message: "This PR was closed because it has been inactive for 30 days since being marked as stale. It will be automatically locked after an additional 30 days. If there is still a commitment to finishing this PR please re-open it, or request that a project maintainer re-open it before it becomes locked."
exempt-assignees: jertel

0 comments on commit c825ba1

Please sign in to comment.