Skip to content

ci: approve Dependabot PRs and enable auto-merge, as lstk does - #162

Merged
bartsdev merged 1 commit into
mainfrom
ci/dependabot-auto-merge-lstk
Dec 2, 2026
Merged

bartsdev merged 1 commit into
mainfrom
ci/dependabot-auto-merge-lstk

Conversation

@bartsdev

@bartsdev bartsdev commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

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-bot approves the Dependabot PR and turns on GitHub's auto-merge. GitHub then squash-merges the PR once the main ruleset's required checks pass. The merge is made with the bot's token, not GITHUB_TOKEN, so the push to main still starts CI, the image push and the evals.

Kept from the previous version, unlike lstk:

  • Major updates wait for a maintainer (dependabot/fetch-metadata).
  • The job runs only when Dependabot itself pushed (github.actor), not when someone else pushes to its branch.

The token comes from the GH_TOKEN_OPEN_NEW_PR secret, the same name lstk uses. It is set only on the two gh steps, so the third-party action never sees it.

Before merging, a repo admin must change two settings, or --auto fails or merges without waiting for checks:

  • Turn on the repository's auto-merge setting (allow_auto_merge).
  • In the ruleset "Merges into main require repo owners", require the checks build, mcp-direct-tests and mcp-tool-tests. ci.yml runs them on every PR to main, 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 credentials from the old LOCALSTACK_BOT_TOKEN secret.

🤖 Generated with Claude Code

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>
@bartsdev
bartsdev merged commit 36b794c into main Dec 2, 2026
4 checks passed
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