Skip to content

Commit 5bc4327

Browse files
Erlend Egeberg Aaslandhugovk
andauthored
Close stale PRs without signed CLA (GH-30500)
Co-authored-by: Hugo van Kemenade <[email protected]>
1 parent 482a4b6 commit 5bc4327

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/stale.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,23 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/stale@v4
17+
- name: "Check PRs with 'CLA signed' label"
18+
uses: actions/stale@v4
1819
with:
1920
repo-token: ${{ secrets.GITHUB_TOKEN }}
21+
only-pr-labels: 'CLA signed'
2022
stale-pr-message: 'This PR is stale because it has been open for 30 days with no activity.'
2123
stale-pr-label: 'stale'
2224
days-before-stale: 30
2325
days-before-close: -1
26+
27+
- name: "Check PRs with 'CLA not signed' label"
28+
uses: actions/stale@v4
29+
with:
30+
repo-token: ${{ secrets.GITHUB_TOKEN }}
31+
only-pr-labels: 'CLA not signed'
32+
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'
33+
stale-pr-label: 'stale'
34+
close-pr-message: 'Closing this stale PR because the CLA is still not signed.'
35+
days-before-stale: 30
36+
days-before-close: 14

0 commit comments

Comments
 (0)