Skip to content

Commit

Permalink
ci: Add issue and PR assigner
Browse files Browse the repository at this point in the history
Adds actions that will automatically assign users to reviews
and issues

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
  • Loading branch information
nordicjm committed Sep 16, 2024
1 parent cecde21 commit 90d1834
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Issue assignment

on:
issues:
types: [opened]

jobs:
auto-assign:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: 'Auto-assign issue'
uses: pozil/auto-assign-issue@v2
with:
repo-token: ${{ secrets.USER_TOKEN }}
assignees: d3zd3z, nordicjm, de-nordic, davidvincze
allowSelfAssign: true
17 changes: 17 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: PR assignment

on:
pull_request:
types: [opened, edited, synchronize, reopened]

jobs:
auto-assign:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/checkout@v1
- uses: ohnogumi/auto-reviewers@v0.0.5
with:
token: "${{ secrets.USER_TOKEN }}"
config: "CODEOWNERS"

0 comments on commit 90d1834

Please sign in to comment.