-
Notifications
You must be signed in to change notification settings - Fork 908
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GHA to mark issues/prs as stale/rotten
Issues and PRs without activity for 30d will be marked as stale. If there is no activity for 90d, they will be marked as rotten. Signed-off-by: Jordan Jacobelli <[email protected]>
- Loading branch information
1 parent
d3f5add
commit 1fa7e36
Showing
1 changed file
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: Mark stale and rotten issues and pull requests | ||
|
||
on: | ||
schedule: | ||
- cron: "0 * * * *" | ||
|
||
jobs: | ||
mark-stale-issues: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Mark Issues as Stale | ||
uses: actions/stale@v3 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
stale-issue-message: > | ||
This issue has been marked stale due to no recent activity in the past 30d. | ||
Please close this issue if no further response or action is needed. | ||
Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed. | ||
This issue will be marked rotten if there is no activity in the next 60d. | ||
stale-issue-label: "stale" | ||
days-before-issue-stale: 30 | ||
days-before-issue-close: -1 | ||
mark-stale-prs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Mark PRs as Stale | ||
uses: actions/stale@v3 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
stale-pr-message: > | ||
This PR has been marked stale due to no recent activity in the past 30d. | ||
Please close this PR if it is no longer required. | ||
Otherwise, please respond with a comment indicating any updates. | ||
This PR will be marked rotten if there is no activity in the next 60d. | ||
stale-pr-label: "stale" | ||
days-before-pr-stale: 30 | ||
days-before-pr-close: -1 | ||
mark-rotten-issues: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Mark Issues as Rotten | ||
uses: actions/stale@v3 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
stale-issue-message: > | ||
This issue has been marked rotten due to no recent activity in the past 90d. | ||
Please close this issue if no further response or action is needed. | ||
Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed. | ||
stale-issue-label: "rotten" | ||
days-before-issue-stale: 90 | ||
days-before-issue-close: -1 | ||
mark-rotten-prs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Mark PRs as Rotten | ||
uses: actions/stale@v3 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
stale-pr-message: > | ||
This PR has been marked rotten due to no recent activity in the past 90d. | ||
Please close this PR if it is no longer required. | ||
Otherwise, please respond with a comment indicating any updates. | ||
stale-pr-label: "rotten" | ||
days-before-pr-stale: 90 | ||
days-before-pr-close: -1 |