]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add a workflow to add issues/PRs to projects. (#94447)
authorEzio Melotti <ezio.melotti@gmail.com>
Fri, 1 Jul 2022 08:33:10 +0000 (10:33 +0200)
committerGitHub <noreply@github.com>
Fri, 1 Jul 2022 08:33:10 +0000 (10:33 +0200)
* Add a workflow to add issues/PRs to projects.

* Apply suggestions from code review

Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
.github/workflows/project-updater.yml [new file with mode: 0644]

diff --git a/.github/workflows/project-updater.yml b/.github/workflows/project-updater.yml
new file mode 100644 (file)
index 0000000..4231b03
--- /dev/null
@@ -0,0 +1,23 @@
+name: Update GH projects
+
+on:
+  issues:
+    types:
+      - opened
+      - labeled
+  pull_request:
+    types:
+      - opened
+      - labeled
+
+jobs:
+  add-to-project:
+    name: Add to the Release and Deferred Blocker project
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/add-to-project@v0.1.0
+        with:
+          project-url: https://github.com/orgs/python/projects/2
+          github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
+          labeled: release-blocker, deferred-blocker
+          label-operator: OR