Repository navigation
deps-merge gains an unattended mode for Dependabot pip PRs - #176
Merged
Merged
Conversation
`deps-merge --repo OWNER/REPO --unattended` is the mode marola-dev/marola#740's scheduled job runs with a marola-merge-bot token minted without Workflows. On top of the interactive rules (mergeable, every check green), it merges a PR only when Dependabot authored it and every commit on it, it has no `hold` label, it changes only Python manifests (requirements*.txt, pyproject.toml, a lock file), and every changed manifest line is the same dependency with only its versions moved, none by a major. A 0.x minor counts as major, and a raised upper bound (<4 to <5) is a major too. The versions come from the diff, not the PR body: Dependabot's pip range updates (marola-ml#78) carry no update-type, and the compare links are unreliable (marola-ml#21's torch link). A `semver-major` in the commit metadata still refuses. The merge passes --match-head-commit, so a push after the checks ran cannot be merged unchecked. Each refused PR gets one stderr line naming the rule. The caller checks AUTO_MERGE. The interactive mode is unchanged. Closes #150 Tested: gates — deps-merge.sh --self-test 23/23 ok (11 new cases fail with the unattended rules off); a read-only --dry-run on marola-ml refuses #78 only for its CANCELLED check and makes it READY, pinned to its head commit, when that check is set green; claude plugin validate not run (not on PATH) Co-Authored-By: Claude <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.
Summary —
deps-merge --repo OWNER/REPO --unattendedis the mode marola-dev/marola#740's scheduled job runs with a marola-merge-bot token minted without Workflows. On top of the interactive rules (mergeable, every check green), it merges a PR only when Dependabot authored it and every commit on it, it has noholdlabel, it changes only Python manifests (requirements*.txt, pyproject.toml, a lock file), and every changed manifest line is the same dependency with only its versions moved, none by a major.Closes #150
What changed
7676d13)