From 77e8a367824ce0c4a19ea4f63a6fff557606078e Mon Sep 17 00:00:00 2001 From: Michael Finson Date: Tue, 4 Aug 2026 12:52:32 +0300 Subject: [PATCH 1/4] chore: auto-assign pull request authors --- .github/workflows/assign-pr-author.yml | 29 ++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/assign-pr-author.yml diff --git a/.github/workflows/assign-pr-author.yml b/.github/workflows/assign-pr-author.yml new file mode 100644 index 0000000..451f7d0 --- /dev/null +++ b/.github/workflows/assign-pr-author.yml @@ -0,0 +1,29 @@ +name: Assign PR Author + +on: + pull_request_target: + types: [opened, reopened] + +permissions: + contents: read + issues: write + +jobs: + assign-author: + if: ${{ github.event.pull_request.user.type == 'User' }} + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b + with: + script: | + try { + await github.rest.issues.addAssignees({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.payload.pull_request.number, + assignees: [context.payload.pull_request.user.login], + }); + } catch (error) { + core.warning(`Could not assign PR author: ${error.message}`); + } From 7bf50028bbe771e40cc9c5eb9e21c33a3f82c78f Mon Sep 17 00:00:00 2001 From: Michael Finson Date: Tue, 4 Aug 2026 13:38:01 +0300 Subject: [PATCH 2/4] chore: mirror omni author assignment action --- .github/workflows/assign-pr-author.yml | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/.github/workflows/assign-pr-author.yml b/.github/workflows/assign-pr-author.yml index 451f7d0..e60da48 100644 --- a/.github/workflows/assign-pr-author.yml +++ b/.github/workflows/assign-pr-author.yml @@ -6,24 +6,13 @@ on: permissions: contents: read - issues: write + pull-requests: write jobs: assign-author: - if: ${{ github.event.pull_request.user.type == 'User' }} runs-on: ubuntu-latest timeout-minutes: 5 steps: - - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b + - uses: toshimaru/auto-author-assign@5cd66f093de6691e0812ef186b7492589b0b7866 with: - script: | - try { - await github.rest.issues.addAssignees({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.payload.pull_request.number, - assignees: [context.payload.pull_request.user.login], - }); - } catch (error) { - core.warning(`Could not assign PR author: ${error.message}`); - } + repo-token: ${{ secrets.GITHUB_TOKEN }} From 986788442f784a76e6d18c8def6c1a658638aa33 Mon Sep 17 00:00:00 2001 From: Michael Finson Date: Tue, 4 Aug 2026 15:11:03 +0300 Subject: [PATCH 3/4] chore(ci): harden PR author assignment --- .github/workflows/assign-pr-author.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/assign-pr-author.yml b/.github/workflows/assign-pr-author.yml index e60da48..ee8af43 100644 --- a/.github/workflows/assign-pr-author.yml +++ b/.github/workflows/assign-pr-author.yml @@ -1,8 +1,12 @@ name: Assign PR Author on: - pull_request_target: - types: [opened, reopened] + pull_request: + types: [opened, reopened, synchronize] + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number }} + cancel-in-progress: true permissions: contents: read @@ -13,6 +17,4 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 5 steps: - - uses: toshimaru/auto-author-assign@5cd66f093de6691e0812ef186b7492589b0b7866 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} + - uses: toshimaru/auto-author-assign@3e19bfc990cb1cf0589dce95e9f75289bb1e22de # v3.0.3 From 0bb8d3e06ac9ae0ffe7c4c45b15424834feb78ef Mon Sep 17 00:00:00 2001 From: Michael Finson Date: Tue, 4 Aug 2026 17:47:43 +0300 Subject: [PATCH 4/4] chore(deps): update GitHub Actions weekly --- .github/dependabot.yml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..c75e875 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: github-actions + directory: "/" + schedule: + interval: weekly