Explorar o código

Add sync_issues GitHub Action for workflows

Matthew hai 1 ano
pai
achega
e2ddd6e7cc
Modificáronse 1 ficheiros con 24 adicións e 0 borrados
  1. 24 0
      .github/workflows/sync_issues.yml

+ 24 - 0
.github/workflows/sync_issues.yml

@@ -0,0 +1,24 @@
+name: Automate Issue Management
+
+on:
+  issues:
+    types:
+      - opened
+      - edited
+      - assigned
+      - unassigned
+      - labeled
+      - unlabeled
+      - reopened
+
+jobs:
+  add_issue_to_project:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Add issue to GitHub Project
+        uses: actions/add-to-project@v1.0.2
+        with:
+          project-url: https://github.com/orgs/Seeed-Studio/projects/17
+          github-token: ${{ secrets.ISSUE_ASSEMBLE }}
+          labeled: bug
+          label-operator: NOT