Jelajahi Sumber

Merge pull request #322 from Sjoerd-Bo3/feat-addtoproject

feat(issuemanagement): automatically adding the project to the issue types bug and needs triage
bjornoleh 1 tahun lalu
induk
melakukan
46ca6663ad
1 mengubah file dengan 20 tambahan dan 0 penghapusan
  1. 20 0
      .github/workflows/add_to_project.yml

+ 20 - 0
.github/workflows/add_to_project.yml

@@ -0,0 +1,20 @@
+name: Add bugs to bugs project
+
+on:
+  issues:
+    types:
+      - opened
+
+jobs:
+  add-to-project:
+    name: Add issue to project
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/add-to-project@v1.0.2
+        with:
+          # You can target a project in a different organization
+          # to the issue
+          project-url: https://github.com/orgs/nightscout/projects/2
+          github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
+          labeled: bug, needs-triage
+          label-operator: OR