From 201b001a8b937343a8f440a457426ef9f1243012 Mon Sep 17 00:00:00 2001 From: Jamie McCrae Date: Mon, 16 Sep 2024 10:36:20 +0100 Subject: [PATCH 1/3] codeowners: Add file Adds a file with codeowners Signed-off-by: Jamie McCrae --- CODEOWNERS | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 CODEOWNERS diff --git a/CODEOWNERS b/CODEOWNERS new file mode 100644 index 000000000..b9f8e8b56 --- /dev/null +++ b/CODEOWNERS @@ -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 +boot/zcbor @nordicjm @de-nordic +boot/zephyr @nordicjm @de-nordic +* @d3zd3z From 9d0abd4fe900db5c05db347b9c84baaf6a0d73e0 Mon Sep 17 00:00:00 2001 From: Jamie McCrae Date: Mon, 16 Sep 2024 10:36:37 +0100 Subject: [PATCH 2/3] ci: Add issue and PR assigner Adds actions that will automatically assign users to reviews and issues Signed-off-by: Jamie McCrae --- .github/workflows/issue.yml | 18 ++++++++++++++++++ .github/workflows/pr.yml | 17 +++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 .github/workflows/issue.yml create mode 100644 .github/workflows/pr.yml diff --git a/.github/workflows/issue.yml b/.github/workflows/issue.yml new file mode 100644 index 000000000..6d52cf729 --- /dev/null +++ b/.github/workflows/issue.yml @@ -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 diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 000000000..773e5e464 --- /dev/null +++ b/.github/workflows/pr.yml @@ -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 From a246a42188a673bddcbc13253e5dd22fa92af88b Mon Sep 17 00:00:00 2001 From: Jamie McCrae Date: Fri, 20 Sep 2024 11:02:40 +0100 Subject: [PATCH 3/3] hmm --- .github/workflows/pr.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 773e5e464..63784c9b3 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -9,9 +9,15 @@ jobs: 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: - - uses: actions/checkout@v1 - - uses: ohnogumi/auto-reviewers@v0.0.5 - with: - token: ${{ secrets.USER_TOKEN }} - config: CODEOWNERS + - name: 'Auto-assign PR' + uses: pozil/auto-assign-issue@v2 + with: + repo-token: ${{ secrets.USER_TOKEN }} + assignees: nordicjm