Skip to content

Commit

Permalink
closing inactive issues (#1398)
Browse files Browse the repository at this point in the history
* Create closing_inactive_issues

* Update closing_inactive_issues

Feel free to modify days-before-issue-stale and days-before-issue-close

* Update closing_inactive_issues

The following worklows does the following:

- Non-active issues are marked as stale after 8 days of no activity
- Stale issues are closed after 14 days from the time the issue is marked as stale

---------

Co-authored-by: Eugene Khvedchenya <ekhvedchenya@gmail.com>
  • Loading branch information
bit-scientist and BloodAxe committed Aug 22, 2023
1 parent 1680783 commit 052af61
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/closing_inactive_issues
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Close inactive issues
on:
schedule:
- cron: "50 10 * * *"

jobs:
close-issues:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v5
with:
days-before-issue-stale: 8
days-before-issue-close: 14
stale-issue-label: "stale"
stale-issue-message: "This issue is stale because it has been open for 8 days with no activity."
close-issue-message: "This issue was closed because it has been inactive for 7 days since being marked as stale."
days-before-pr-stale: -1
days-before-pr-close: -1
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 052af61

Please sign in to comment.