forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 1.24 KB
/
stale.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
31
32
33
34
35
36
37
38
39
40
name: Mark stale pull requests
on:
schedule:
- cron: "0 0 * * *"
permissions:
pull-requests: write
jobs:
stale:
if: github.repository_owner == 'python'
runs-on: ubuntu-latest
steps:
- name: "Check PRs with 'CLA signed' label"
uses: actions/stale@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
only-pr-labels: 'CLA signed'
stale-pr-message: 'This PR is stale because it has been open for 30 days with no activity.'
stale-pr-label: 'stale'
days-before-stale: 30
days-before-close: -1
ascending: true
operations-per-run: 120
- name: "Check PRs with 'CLA not signed' label"
uses: actions/stale@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
only-pr-labels: 'CLA not signed'
stale-pr-message: 'This PR is stale because it has been open for 30 days with no activity. If the CLA is not signed within 14 days, it will be closed. See also https://devguide.python.org/pullrequest/#licensing'
stale-pr-label: 'stale'
close-pr-message: 'Closing this stale PR because the CLA is still not signed.'
days-before-stale: 30
days-before-close: 14
ascending: true
operations-per-run: 120