ci: Add issue and PR assigner
Adds actions that will automatically assign users to reviews
and issues to projects
Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
diff --git a/.github/workflows/issue.yml b/.github/workflows/issue.yml
new file mode 100644
index 0000000..e2b03c4
--- /dev/null
+++ b/.github/workflows/issue.yml
@@ -0,0 +1,20 @@
+name: Issue assignment
+
+on:
+ issues:
+ types: [opened]
+
+jobs:
+ move-to-todo:
+ runs-on: ubuntu-latest
+ if: github.repository == 'mcu-tools/mcuboot'
+ steps:
+ - uses: fojia/action-move-issues-to-column@master
+ with:
+ project: 'MCUboot releases'
+ column: 'No Status'
+ owner: 'mcu-tools'
+ repo: 'action-move-issues-to-column'
+ type: 'repo'
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ marker: 'issue:todo'
diff --git a/.github/workflows/issue_closed.yml b/.github/workflows/issue_closed.yml
new file mode 100644
index 0000000..342e539
--- /dev/null
+++ b/.github/workflows/issue_closed.yml
@@ -0,0 +1,19 @@
+name: Issue closed
+
+on:
+ issues:
+ types: [close]
+
+jobs:
+ move-to-todo:
+ runs-on: ubuntu-latest
+ if: github.repository == 'mcu-tools/mcuboot'
+ steps:
+ - uses: fojia/action-move-issues-to-column@master
+ with:
+ project: 'MCUboot releases'
+ column: 'Done'
+ owner: 'mcu-tools'
+ repo: 'action-move-issues-to-column'
+ type: 'repo'
+ github_token: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml
new file mode 100644
index 0000000..17c260c
--- /dev/null
+++ b/.github/workflows/pr.yml
@@ -0,0 +1,18 @@
+name: PR assignment
+
+on:
+ pull_request:
+ types: [opened, edited, synchronize, reopened]
+
+jobs:
+ auto-assign:
+ runs-on: ubuntu-latest
+ permissions:
+ pull-requests: write
+ if: github.repository == 'mcu-tools/mcuboot'
+ steps:
+ - uses: actions/checkout@v1
+ - uses: ohnogumi/auto-reviewers@v0.0.5
+ with:
+ token: ${{ secrets.GITHUB_TOKEN }}
+ config: CODEOWNERS