-
Notifications
You must be signed in to change notification settings - Fork 468
31 lines (29 loc) · 1.07 KB
/
pr-autoclose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Close inactive PRs
on:
schedule:
- cron: "30 1 * * *"
jobs:
close-issues:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v9
with:
#
# Leave all issues alone
days-before-issue-stale: -1
days-before-issue-close: -1
#
# We autoclose PRs marked as "Stale" (which is the default label for this)
stale-pr-label: "Stale"
# Issues that are internally tracked in Jira are not marked as "Stale"
exempt-pr-labels: 'tracked'
# After 14 days of inactivity, mark PRs as "Stale"
days-before-pr-stale: 14
stale-pr-message: "This PR is stale because it has been open for 14 days with no activity and the Github Actions are not passing."
# Autoclose stale PRs after 14 days.
days-before-pr-close: 14
close-pr-message: "This PR was closed because it has been inactive for 14 days since being marked as stale."
repo-token: ${{ secrets.GITHUB_TOKEN }}