From e8254c420867a7f0dfdda71176177f2b7e243b67 Mon Sep 17 00:00:00 2001 From: Vincent Guilpain Date: Tue, 25 Nov 2025 15:40:31 +0900 Subject: [PATCH 1/2] Add action to assign reviewers to Dependabot PRs --- .github/dependabot.yml | 2 -- .../assign-dependabot-pr-reviewers.yaml | 20 +++++++++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/assign-dependabot-pr-reviewers.yaml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 24fa5a0..0362ccd 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -9,5 +9,3 @@ updates: directory: "/" schedule: interval: "weekly" - reviewers: - - "scalar-labs/scalardb" diff --git a/.github/workflows/assign-dependabot-pr-reviewers.yaml b/.github/workflows/assign-dependabot-pr-reviewers.yaml new file mode 100644 index 0000000..92621f3 --- /dev/null +++ b/.github/workflows/assign-dependabot-pr-reviewers.yaml @@ -0,0 +1,20 @@ +name: Assign reviewer to dependabot PRs +# This action assigns the ScalarDB team as reviewers when Dependabot opens a pull request. + +on: + pull_request: + types: [opened] + +jobs: + assign-reviewer: + runs-on: ubuntu-latest + if: github.actor == 'dependabot[bot]' + + steps: + - name: Assign ScalarDB team as reviewers for Dependabot PRs + env: + GH_TOKEN: ${{ secrets.ASSIGN_PR_REVIEWERS_PAT }} + PR_NUMBER: ${{ github.event.pull_request.number }} + REPOSITORY: ${{ github.repository }} + run: gh pr edit $PR_NUMBER --repo $REPOSITORY --add-reviewer scalar-labs/scalardb + From 3527eb02ec9a7405fd9ff6bdc21d293ef209eb76 Mon Sep 17 00:00:00 2001 From: Vincent Guilpain Date: Tue, 25 Nov 2025 15:48:24 +0900 Subject: [PATCH 2/2] Add action to assign reviewers to Dependabot PRs --- .github/dependabot.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 0362ccd..76e87cd 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -9,3 +9,6 @@ updates: directory: "/" schedule: interval: "weekly" + day: "monday" + time: "01:00" + timezone: "Asia/Tokyo"