.github: add dry-run input to automerge workflow#209
Draft
lumachad wants to merge 7 commits into
Draft
Conversation
Adds a boolean workflow_dispatch input so the automerge job can be triggered manually with --dry-run from the GitHub Actions UI. Co-Authored-By: Claude <[email protected]>
Remove the if: false guard and enable the job condition. Co-Authored-By: Claude <[email protected]>
Co-Authored-By: Claude <[email protected]>
Branch creation and PR opening still run under --dry-run, so the full workflow can be exercised without touching amd-staging. Co-Authored-By: Claude <[email protected]>
Instead of checking out and merging locally, push the upstream commit directly as the ff branch ref. This means the PR contains only the upstream commits, so a merge commit from GitHub's UI produces a single clean merge entry with no nested merge commit. Co-Authored-By: Claude <[email protected]>
Previously 7b returned after opening the ff PR, leaving the conflict commit for the next run. Now it falls through to step 8 so both PRs are opened in a single run. Co-Authored-By: Claude <[email protected]>
Use GITHUB_REPOSITORY (a GitHub Actions default) for the repo slug and require AUTOMERGE_TARGET_BRANCH (a repository variable set in Settings → Variables → Actions) for the branch being updated. Both punt with an error if unset. Upstream remote URL and branch (sourceware/master) remain constants. PR titles, PR bodies, and auto-created branch prefixes are all derived from the variable values. Co-Authored-By: Claude <[email protected]>
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
dry_runboolean input to theworkflow_dispatchtrigger--dry-runtoautomerge.py(fetches and probes but skips pushes and PR creation)pull_request-triggered runsTest plan