Debian Codegraph @

.github/workflows/stale-pr.yaml

raw
1 name: "Close stale pull requests"
2 on:
3 schedule:
4 - cron: "12 3 * * *" # arbitrary time not to DDOS GitHub
5
6 permissions: read-all
7
8 jobs:
9 stale:
10 permissions:
11 issues: write # for actions/stale to close stale issues
12 pull-requests: write # for actions/stale to close stale PRs
13 runs-on: ubuntu-latest
14 steps:
15 - uses: actions/stale@5f858e3efba33a5ca4407a664cc011ad407f2008 # v10.1.0
16 with:
17 repo-token: ${{ secrets.GITHUB_TOKEN }}
18 stale-pr-message: "This PR was marked stale due to lack of activity. It will be closed in 14 days."
19 close-pr-message: "Closed as inactive. Feel free to reopen if this PR is still being worked on."
20 days-before-pr-stale: 14
21 days-before-issue-stale: 730
22 days-before-pr-close: 14
23 days-before-issue-close: 30