Skip to content

Commit 8f557aa

Browse files
committed
ci: Add issue and PR assigner
Adds actions that will automatically assign users to reviews and issues to projects Signed-off-by: Jamie McCrae <[email protected]>
1 parent f865cc3 commit 8f557aa

File tree

3 files changed

+57
-0
lines changed

3 files changed

+57
-0
lines changed

.github/workflows/issue.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Issue assignment
2+
3+
on:
4+
issues:
5+
types: [opened]
6+
7+
jobs:
8+
move-to-todo:
9+
runs-on: ubuntu-latest
10+
if: github.repository == 'mcu-tools/mcuboot'
11+
steps:
12+
- uses: fojia/action-move-issues-to-column@master
13+
with:
14+
project: 'MCUboot releases'
15+
column: 'No Status'
16+
owner: 'mcu-tools'
17+
repo: 'action-move-issues-to-column'
18+
type: 'repo'
19+
github_token: ${{ secrets.GITHUB_TOKEN }}
20+
marker: 'issue:todo'

.github/workflows/issue_closed.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Issue closed
2+
3+
on:
4+
issues:
5+
types: [close]
6+
7+
jobs:
8+
move-to-todo:
9+
runs-on: ubuntu-latest
10+
if: github.repository == 'mcu-tools/mcuboot'
11+
steps:
12+
- uses: fojia/action-move-issues-to-column@master
13+
with:
14+
project: 'MCUboot releases'
15+
column: 'Done'
16+
owner: 'mcu-tools'
17+
repo: 'action-move-issues-to-column'
18+
type: 'repo'
19+
github_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/pr.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: PR assignment
2+
3+
on:
4+
pull_request:
5+
types: [opened, edited, synchronize, reopened]
6+
7+
jobs:
8+
auto-assign:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
pull-requests: write
12+
if: github.repository == 'mcu-tools/mcuboot'
13+
steps:
14+
- uses: actions/checkout@v1
15+
- uses: ohnogumi/[email protected]
16+
with:
17+
token: ${{ secrets.GITHUB_TOKEN }}
18+
config: CODEOWNERS

0 commit comments

Comments
 (0)