Skip to content

Commit

Permalink
change lock schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
jertel committed Mar 18, 2024
1 parent b40bd44 commit 1b97780
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 19 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
23 changes: 4 additions & 19 deletions .github/workflows/lock-threads.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,12 @@ 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-assignees: jertel

lock-threads:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v5
- uses: jertel/lock-threads@main
with:
discussion-inactive-days: 14
include-discussion-currently-open: true
discussion-inactive-days: 90
issue-inactive-days: 30
pr-inactive-days: 60
pr-inactive-days: 30

0 comments on commit 1b97780

Please sign in to comment.