Dependabot auto-merge + verify-or-revert on the website deploy - #642
Merged
Conversation
Automate Dependabot dependency bumps end to end, gated on the post-merge "Publish to website" deploy that pushes generated content to the innersourcecommons.org repo. - dependabot-auto-merge.yml: auto-approve and enable auto-merge for patch and minor Dependabot bumps; hold major bumps for a human, since majors are what have broken the deploy before. - revert-bump-on-failed-deploy.yml: when the deploy fails on a bump commit, open a revert PR that mentions the learning-path maintainers and enable auto-merge on it (one approval still completes the revert). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018zv3SKYNduHEhVyNWLb3Xh
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.
What this does
Automates Dependabot dependency bumps for
/scripts, gated on the real deploy signal: the Publish to website workflow, which regenerates the learning-path markdown and pushes it into theinnersourcecommons.orgrepo. That workflow only runs post-merge (never on the PR), so the only way to know a bump breaks the deploy is to merge it and watch - which is what this pair does.Two workflows:
dependabot-auto-merge.yml- on a Dependabot PR, reads the update type and, for patch/minor only, auto-approves and enables auto-merge (squash). Major bumps wait for a human, because majors are what have broken the deploy before (asciidoctor 3 → 4 broke it and stayed broken for ~2 months).revert-bump-on-failed-deploy.yml- when Publish to website fails on a push tomainwhose commit is aBump ...(Dependabot), it opens a PR reverting that commit,@-mentions@InnerSourceCommons/learning-path, and enables auto-merge on the revert.What's automatic vs. what still needs a human
To activate (after merge)
That's it - no secrets required for this version.
Honest limitations
main- this is a draft for review.🤖 Generated with Claude Code
https://claude.ai/code/session_018zv3SKYNduHEhVyNWLb3Xh