-
Notifications
You must be signed in to change notification settings - Fork 514
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
42 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,42 @@ | ||
name: Stale Pull Requests | ||
|
||
on: | ||
schedule: | ||
- cron: '0 12 * * FRI' # Run every Friday at 12:00 (UTC) | ||
|
||
# The minimum permissions required to run this Action | ||
permissions: | ||
contents: write # only for delete-branch option | ||
issues: write | ||
pull-requests: write | ||
|
||
jobs: | ||
stale-pr: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Stale pull requests | ||
uses: actions/stale@v9 | ||
with: | ||
# The idle number of days before marking issues stale. | ||
# | ||
# With a negative number like -1, no issues | ||
# will be marked as stale automatically. | ||
days-before-issue-stale: -1 | ||
# The idle number of days before marking pull requests stale | ||
days-before-pr-stale: 20 | ||
# The idle number of days before closing | ||
# the stale pull requests (due to the stale label). | ||
# | ||
# With a negative number like -1, the pull requests | ||
# will never be closed automatically. | ||
days-before-pr-close: -1 | ||
# Label to apply on staled pull requests | ||
stale-pr-label: 'stale' | ||
# The message that will be added as a comment to the pull request | ||
stale-pr-message: 'This PR is stale for 20 days' | ||
# Remove `stale` label from pull requests on updates/comments | ||
remove-pr-stale-when-updated: true |