From 3c196cb556bbc3a1eaf1e0463f1d8aa6cad90f00 Mon Sep 17 00:00:00 2001 From: plx Date: Wed, 22 Oct 2025 17:37:16 -0500 Subject: [PATCH] Configure Dependabot auto-merge to develop --- .github/dependabot.yml | 2 ++ .github/workflows/dependabot-auto-merge.yml | 30 +++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 .github/workflows/dependabot-auto-merge.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index aade808..594fd82 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -3,6 +3,7 @@ updates: # Maintain dependencies for Cargo (Rust packages) - package-ecosystem: "cargo" directory: "/" + target-branch: "develop" schedule: interval: "weekly" day: "monday" @@ -30,6 +31,7 @@ updates: # Maintain dependencies for GitHub Actions - package-ecosystem: "github-actions" directory: "/" + target-branch: "develop" schedule: interval: "weekly" day: "monday" diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml new file mode 100644 index 0000000..f074e14 --- /dev/null +++ b/.github/workflows/dependabot-auto-merge.yml @@ -0,0 +1,30 @@ +name: Dependabot Auto-Merge + +on: + pull_request_target: + types: + - opened + - reopened + - synchronize + +permissions: + contents: write + pull-requests: write + checks: read + +jobs: + enable-auto-merge: + if: >- + ${{ github.actor == 'dependabot[bot]' && + github.event.pull_request.base.ref == 'develop' }} + runs-on: ubuntu-latest + steps: + - name: Fetch Dependabot metadata + id: metadata + uses: dependabot/fetch-metadata@v1 + + - name: Enable auto-merge + uses: peter-evans/enable-pull-request-automerge@v3 + with: + token: ${{ secrets.GITHUB_TOKEN }} + merge-method: squash