Skip to content

Commit

Permalink
ci: Add stale action
Browse files Browse the repository at this point in the history
  • Loading branch information
Luni-4 committed Feb 29, 2024
1 parent 40bf392 commit 9aa2ee7
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/stale-pr.yml
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

0 comments on commit 9aa2ee7

Please sign in to comment.