Skip to content

Commit

Permalink
Merge pull request #85 from Shopify/nelsonwittwer/upgrade_stale
Browse files Browse the repository at this point in the history
upgraded stale bot to include prs
  • Loading branch information
nelsonwittwer authored Mar 27, 2023
2 parents ea84a4f + e63bf00 commit d1e8286
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,43 @@
name: Close inactive issues
name: Close inactive issues / prs
on:
schedule:
- cron: "30 1 * * *"

jobs:
close-issues:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v5
- uses: actions/stale@v7
with:
days-before-issue-stale: 60
days-before-issue-close: 14
days-before-pr-stale: 60
days-before-pr-close: 14
operations-per-run: 1000
stale-issue-label: "Stale"
stale-pr-label: "Stale"
stale-issue-message: >
This issue is stale because it has been open for 60 days with no activity. It will be closed if no further action occurs in 14 days.
close-issue-message: |
We are closing this issue because it has been inactive for a few months.
This probably means that it is not reproducible or it has been fixed in a newer version.
We are closing this issue because it has been inactive for a few months.
This probably means that it is not reproducible or it has been fixed in a newer version.
If it’s an enhancement and hasn’t been taken on since it was submitted, then it seems other issues have taken priority.
If you still encounter this issue with the latest version of this app template, please reopen using the issue template. You can also contribute directly by submitting a pull request.
Thank you!
days-before-pr-stale: -1
days-before-pr-close: -1
repo-token: ${{ secrets.GITHUB_TOKEN }}
exempt-issue-labels: "feature request"
stale-pr-message: >
This pull request is stale because it has been open for 60 days with no activity. It will be closed if no further action occurs in 14 days.
close-pr-message: |
We are closing this pull request because it has been inactive for a few months.
This probably means that it is not reproducible or it has been fixed in a newer version.
If it’s an enhancement and hasn’t been taken on since it was submitted, then it seems other issues have taken priority.
If you still encounter this issue with the latest version of this app template, please reopen using the issue template. You can also contribute directly by submitting a pull request.
Thank you!
repo-token: ${{ github.token }}
close-issue-reason: "not_planned"

0 comments on commit d1e8286

Please sign in to comment.