Repository navigation
Description
Problem or Motivation
The implement job refuses a staged branch that holds a commit by anyone but the GitHub App, and a merge commit that GitHub writes for "Update branch" counts as such a commit. devops roadmap explain 3318 reports:
Implement job: no. Its branch has a commit by Daniel Petty, not by devops-cli-service[bot].
The branch of PR #3334 held one commit by devops-cli-service[bot]. A person then chose "Update branch", and GitHub wrote a merge commit of main into the branch with the person as author. branch_authors in src/devops_cli/roadmap/clone_git.py lists every author past the default branch, and _branch_reason in src/devops_cli/roadmap/implement.py:305 refuses the first author that is not the bot. A routine branch update therefore stops the item.
Proposed Solution & Architectural Design
- In
branch_authors(src/devops_cli/roadmap/clone_git.py), leave out a merge commit whose tree equals the tree thatgit merge-tree --write-tree <first-parent> <second-parent>gives. Such a commit runs the clean merge and changes no file by hand. - Keep the refusal for a merge commit with a different tree, which resolved a conflict or changed a file. A person's edit still stops the item.
- Add a case to the test module that holds
branch_authorswith a bot commit and a clean merge commit by a person; the branch is taken. Add a case with a merge commit that changes a file; the branch is refused with the same message.
Target Subsystem
src/devops_cli/roadmap/clone_git.py, src/devops_cli/roadmap/implement.py.
Existing Tool Considered
git log --no-merges covers the simple case but would also ignore a merge that resolves a conflict. The change compares the merge tree with git merge-tree --write-tree, so no new tool is needed. It deletes no internal code.
Proposed design
Problem statement
The implement job refuses a staged branch that holds a commit by anyone but the GitHub App. A merge commit that GitHub writes for the "Update branch" button counts as such a commit. A routine branch update therefore stops the item. The fix leaves out a clean merge commit from the author list. It keeps the refusal for a merge commit that changes a file.
Acceptance criteria
Existing Tool Considered
x
Key questions
None.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 3, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
A routine GitHub action blocks the item, but a person can push directly as a workaround.It unblocks a common workflow (Update branch) that currently stops the implement job.The change is one function in clone_git.py plus two test cases, with a clear acceptance rule.Both concern the implement job, but 2665 builds the job while the candidate fixes its branch-author refusal of clean merge commits.devops-cli-service commentedon Nov 4, 2026
Refine cannot set this item to Ready at 46fc42e until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.
devops-cli-service commentedon Nov 5, 2026
Released in v0.61.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.61.0
devops-cli-service commentedon Nov 5, 2026
Live since 2026-11-05 12:32 UTC