]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Automatically update more GitHub projects. (#94921)
authorEzio Melotti <ezio.melotti@gmail.com>
Tue, 30 Aug 2022 18:12:55 +0000 (20:12 +0200)
committerGitHub <noreply@github.com>
Tue, 30 Aug 2022 18:12:55 +0000 (20:12 +0200)
* Automatically update the `asyncio` GitHub project.

* Use a matrix to add issues to projects.

* Remove trailing whitespace.

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
.github/workflows/project-updater.yml

index 716ed7841feaeb79a8ba829730cc571ec4063320..ea98700e7fae9c74dc2bb8529bba33545880479b 100644 (file)
@@ -8,12 +8,20 @@ on:
 
 jobs:
   add-to-project:
-    name: Add to the Release and Deferred Blocker project
+    name: Add issues to projects
     runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        include:
+          # if an issue has any of these labels, it will be added
+          # to the corresponding project
+          - { project:  2, label: "release-blocker, deferred-blocker" }
+          - { project:  3, label: expert-subinterpreters }
+          - { project: 29, label: expert-asyncio }
+    
     steps:
       - uses: actions/add-to-project@v0.1.0
         with:
-          project-url: https://github.com/orgs/python/projects/2
+          project-url: https://github.com/orgs/python/projects/${{ matrix.project }}
           github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
-          labeled: release-blocker, deferred-blocker
-          label-operator: OR
+          labeled: ${{ matrix.label }}