From efe58df06f199432a02ae428d479b5fe5323cc45 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 1 Sep 2026 21:29:10 +0000 Subject: [PATCH] Group Dependabot updates and add auto-merge workflow Weekly grouped bundler + github-actions updates, and auto-squash non-major Dependabot PRs via SHA-pinned fetch-metadata. Co-authored-by: ProxyMesh AI --- .github/dependabot.yml | 37 +++++++++++++++++---- .github/workflows/dependabot-auto-merge.yml | 18 ++++++++++ 2 files changed, 48 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/dependabot-auto-merge.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index c496bc7..eeaec9d 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,11 +1,34 @@ -# To get started with Dependabot version updates, you'll need to specify which -# package ecosystems to update and where the package manifests are located. -# Please see the documentation for all configuration options: -# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file - version: 2 updates: - - package-ecosystem: "bundler" # See documentation for possible values - directory: "/" # Location of package manifests + - package-ecosystem: "bundler" + directory: "/" schedule: interval: "weekly" + day: "monday" + open-pull-requests-limit: 5 + cooldown: + default-days: 3 + labels: + - "dependencies" + - "automerge" + groups: + prod-minor-patch: + dependency-type: "production" + update-types: + - "minor" + - "patch" + dev-all: + dependency-type: "development" + update-types: + - "minor" + - "patch" + - "major" + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + day: "monday" + groups: + actions: + patterns: + - "*" diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml new file mode 100644 index 0000000..eaafb2b --- /dev/null +++ b/.github/workflows/dependabot-auto-merge.yml @@ -0,0 +1,18 @@ +name: dependabot-auto-merge +on: + pull_request_target +permissions: + contents: write + pull-requests: write +jobs: + automerge: + if: github.actor == 'dependabot[bot]' + runs-on: ubuntu-latest + steps: + - uses: dependabot/fetch-metadata@21025c705c08248db411dc16f3619e6b5f9ea21a # v2.5.0 + id: meta + - if: steps.meta.outputs.update-type != 'version-update:semver-major' + run: gh pr merge --auto --squash "$PR" + env: + PR: ${{ github.event.pull_request.html_url }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}