From c13b5f31291bc1dd410eda1a8fe437fefca3f681 Mon Sep 17 00:00:00 2001 From: Jeremie Charrier Date: Sat, 10 Oct 2026 14:39:21 +0200 Subject: [PATCH] Bundle Dependabot updates and auto-merge passing PRs Co-Authored-By: Claude Opus 5.5 --- .github/dependabot.yml | 11 ++++++++++ .github/workflows/dependabot-auto-merge.yml | 24 +++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 .github/workflows/dependabot-auto-merge.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index f91b504..caaef26 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -13,6 +13,12 @@ updates: npm-minor-patch: patterns: ["*"] update-types: ["minor", "patch"] + npm-major: + patterns: ["*"] + update-types: ["major"] + npm-security: + applies-to: security-updates + patterns: ["*"] ignore: - dependency-name: "@types/node" update-types: ["version-update:semver-major"] @@ -21,7 +27,12 @@ updates: directory: "/" schedule: interval: "weekly" + cooldown: + default-days: 7 groups: actions-minor-patch: patterns: ["*"] update-types: ["minor", "patch"] + actions-major: + patterns: ["*"] + update-types: ["major"] diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml new file mode 100644 index 0000000..f425e94 --- /dev/null +++ b/.github/workflows/dependabot-auto-merge.yml @@ -0,0 +1,24 @@ +name: Dependabot auto-merge + +on: + pull_request: + branches: [main] + +permissions: + contents: write + pull-requests: write + +jobs: + auto-merge: + if: github.event.pull_request.user.login == 'dependabot[bot]' && github.actor == 'dependabot[bot]' + runs-on: ubuntu-latest + steps: + - id: metadata + uses: dependabot/fetch-metadata@v3 + - if: contains(fromJSON('["version-update:semver-minor", "version-update:semver-patch"]'), steps.metadata.outputs.update-type) + run: | + gh pr review --approve "$PR_URL" + gh pr merge --auto --squash "$PR_URL" + env: + PR_URL: ${{ github.event.pull_request.html_url }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}