Skip to content

fix(roadmap): the implement job takes a branch a person updated #3392

Closed

Description

@dan-petty

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

  1. In branch_authors (src/devops_cli/roadmap/clone_git.py), leave out a merge commit whose tree equals the tree that git merge-tree --write-tree <first-parent> <second-parent> gives. Such a commit runs the clean merge and changes no file by hand.
  2. 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.
  3. Add a case to the test module that holds branch_authors with 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

  1. added
    type/bug
    scope/roadmap
    on Nov 3, 2026
  2. added
    status/new
    value/medium
    effort/low
    on Nov 3, 2026
  3. devops-cli-service commented on Nov 3, 2026

    @devops-cli-service
    Contributor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

  4. devops-cli-service commented on Nov 4, 2026

    @devops-cli-service
    Contributor

    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.

    • The proposal has no problem statement, no acceptance criterion with its requirement, scenario, WHEN and THEN, or no answer to the existing-tool question. State the problem, the requirements with their scenarios, and the open tool that covers the need or the cost of building it.
  5. added
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 5, 2026
  6. removed
    status/in-review
    owner/agent
    on Nov 5, 2026
  7. devops-cli-service commented on Nov 5, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-05 12:32 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumscope/roadmaptype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions