Skip to content

End a Merge's Words at a Comment in the Write Guard's Run-Time Check #3076

Closed

Description

@ptr727

Context

Found by the local review of the lane closing #3006. It was confirmed with a classify probe on a constructed command.

A Comment's Run-Time Word Is Read as a Merge Word

_gh_merge_run_time_word reads every word to the end of the merge's command, a trailing comment's words included, so gh pr merge 5 --squash # $X is denied on $X. The shell drops the comment, so the word never reaches gh. It is a false deny, never a false allow.

Possible Direction

End the merge's words at an unquoted # that opens a word. The push check denies a comment for a reason particular to a push, a dropped refspec, which does not apply to gh.

Activity

  1. added
    introduced
    script
    on Oct 15, 2026
  2. ptr727 commented on Oct 23, 2026

    @ptr727
    OwnerAuthor

    Closed under the maintainer's decision (ptr727, 2026-10-23) on #3391: the backlog keeps real bugs with a stated failure, features the maintainer wants, and open decisions. A finding the review loop filed on code or text a change did not touch, a refactor or consolidation chore, a tracker, a wording item, or a guard shape no session has produced is closed rather than worked. Reopen with the input and the wrong result if this issue states one.

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

    introducedscript

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions