-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Maysun J Faisal <[email protected]>
- Loading branch information
1 parent
61526b7
commit 2706daa
Showing
1 changed file
with
28 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,28 @@ | ||
name: Mark stale PRs and close rotten PRs | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
stale: | ||
|
||
permissions: | ||
pull-requests: write # for actions/stale to close stale PRs | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/stale@v8 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
stale-pr-message: "A friendly reminder that this PR had no activity for 90 days. Stale PRs will be closed after an additional 30 days of inactivity." | ||
close-pr-message: "This PR was closed because it has been inactive for 60 days since being marked as stale." | ||
days-before-stale: 90 | ||
days-before-close: 60 | ||
stale-pr-label: 'lifecycle/stale' | ||
exempt-pr-labels: 'lifecycle/frozen' | ||
close-pr-label: 'lifecycle/rotten' | ||
start-date: '2023-03-16T00:00:00Z' |