Repository navigation
ci: approve Dependabot PRs and enable auto-merge, as lstk does - #162
Merged
Merged
Conversation
The workflow no longer polls checks and merges itself. Like lstk's, the bot approves the PR and turns on GitHub's auto-merge, which squash-merges once the main ruleset's required checks pass. Major updates still wait for a maintainer. The bot token reaches only the two gh steps. Needs the repository's auto-merge setting, and build, mcp-direct-tests and mcp-tool-tests as required checks in the main ruleset. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Dependabot auto-merge now works the same way as in
localstack/lstk.The workflow no longer waits for checks and merges by itself. As in lstk,
localstack-botapproves the Dependabot PR and turns on GitHub's auto-merge. GitHub then squash-merges the PR once themainruleset's required checks pass. The merge is made with the bot's token, notGITHUB_TOKEN, so the push tomainstill starts CI, the image push and the evals.Kept from the previous version, unlike lstk:
dependabot/fetch-metadata).github.actor), not when someone else pushes to its branch.The token comes from the
GH_TOKEN_OPEN_NEW_PRsecret, the same name lstk uses. It is set only on the twoghsteps, so the third-party action never sees it.Before merging, a repo admin must change two settings, or
--autofails or merges without waiting for checks:allow_auto_merge).build,mcp-direct-testsandmcp-tool-tests.ci.ymlruns them on every PR tomain, with no path filter. Bypass actors can still merge fork PRs that lack the token.After merging, ask Dependabot to rebase #159 to test the new workflow. It previously failed with
401 Bad credentialsfrom the oldLOCALSTACK_BOT_TOKENsecret.🤖 Generated with Claude Code