forked from novuhq/novu
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (29 loc) · 1.07 KB
/
pr-manager.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: 'Pull Request Manager'
on:
schedule:
- cron: '0 * * * *'
jobs:
stale:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Process stale PRs
uses: actions/stale@v9
with:
# Get issues in descending (newest first) order.
ascending: false
# After 6 months, mark issue as stale.
days-before-issue-stale: 180
# Do not auto-close issues marked as stale.
days-before-issue-close: -1
# After 3 months, mark PR as stale.
days-before-pr-stale: 90
# Auto-close PRs marked as stale a month later.
days-before-pr-close: 31
# Delete the branch when closing PRs. GitHub's "restore branch" function works indefinitely, so no reason not to.
delete-branch: true
stale-pr-message: 'This PR is being marked as stale due to inactivity.'
close-pr-message: 'This PR is being closed due to inactivity. Please reopen if work is intended to be continued.'
operations-per-run: 100