Skip to content

ci: merge dependabot updates as the release app so they reach a release - #293

Merged
emaarco merged 1 commit into
mainfrom
ci/release-dependabot-updates
Nov 12, 2026
Merged

emaarco merged 1 commit into
mainfrom
ci/release-dependabot-updates

Conversation

@emaarco

@emaarco emaarco commented Nov 12, 2026

Copy link
Copy Markdown
Member

Why

Dependabot updates are auto-merged with the GITHUB_TOKEN, so the merge is attributed to github-actions and its push to main starts no other workflow: CI and release-please only run on the merge commit after the next manual merge. In addition, Dependabot committed every bump as chore(deps), so a dependency update never cut a release of the generator, its plugins or the web app image.

What

  • dependabot-automerge.yml becomes dependabot-automerge-eligibility.yml: it decides with fetch-metadata and per-update-type path gates, also checks pull_request.user.login, and adds or removes the auto-merge label instead of merging.
  • The new dependabot-automerge.yml runs on workflow_run of the eligibility workflow, which gets the Actions secrets, creates a token for the release-please app and enables auto-merge for a labelled pull request. The merge is attributed to the app, so its push starts the workflows on main. A Dependabot-triggered pull_request run only sees Dependabot secrets, hence the split.
  • The auto-merge label was created in the repository.
  • Gates carried over: patch and minor eligible everywhere, majors only under docs/ and tools/.
  • .github/dependabot.yml: Gradle and Docker bumps are committed as fix(deps), npm production bumps as fix(deps) and npm development bumps as chore(deps-dev). GitHub Actions stay chore.

Verification

  • actionlint passes on both workflows and dependabot.yml parses.
  • The same setup runs in emaarco/slidev-addon-diagram-js, Miragon/modeler-suite and other repositories, where Dependabot updates were labelled and merged by the release app.
  • Here it is proven by the next Dependabot pull request after the merge: it gets the label, mergedBy shows the app, and CI and release-please run on the merge commit.

Out of scope / Follow-ups

  • Gradle supports neither prefix-development nor groups by dependency type, so every Gradle bump, test and build dependencies included, cuts a release that publishes to every registry. This is intended; if it turns out too noisy, Gradle can go back to chore and runtime bumps get released by hand.
  • The npm packages have no runtime dependencies, so their bumps stay chore(deps-dev).

Refs Miragon/skills#49

@emaarco
emaarco merged commit b91bcb2 into main Nov 12, 2026
13 checks passed
@emaarco
emaarco deleted the ci/release-dependabot-updates branch November 12, 2026 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant