Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Add issue and PR assigner #2064

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
23 changes: 23 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
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
steps:
- name: 'Auto-assign PR'
uses: pozil/auto-assign-issue@v2
with:
repo-token: ${{ secrets.USER_TOKEN }}
assignees: nordicjm
9 changes: 9 additions & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
boot/boot_serial @nordicjm @de-nordic
boot/bootutil @davidvincze
boot/cypress @romanjoe
boot/espressif @almir-okato
boot/mynewt @kasjer
boot/nuttx @michallenc
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both those users above are not collaborators in the project, and according to the error it needs to have "writer" access!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

boot/zcbor @nordicjm @de-nordic
boot/zephyr @nordicjm @de-nordic
* @d3zd3z
Loading