]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Close stale PRs without signed CLA (GH-30500)
authorErlend Egeberg Aasland <erlend.aasland@innova.no>
Thu, 17 Feb 2022 08:20:40 +0000 (09:20 +0100)
committerGitHub <noreply@github.com>
Thu, 17 Feb 2022 08:20:40 +0000 (09:20 +0100)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
.github/workflows/stale.yml

index 1532af26f59ffdbafb339169468ea9a6f4220854..fc0c15dc0a6005c3c389f6dbd2a0548ea2c93e03 100644 (file)
@@ -14,10 +14,23 @@ jobs:
     runs-on: ubuntu-latest
 
     steps:
-    - uses: actions/stale@v4
+    - 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
+
+    - 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