Skip to content

Squashing broke the commit message when there's code spans in quotes #773

Open

Description

@programmerjake

rust-lang/rust#134021 (comment)

bors squash msg="Implement IntoIterator for [&[mut]] Box<[T; N], A>"

gave a squashed commit message of:

Implement  for

Co-authored-by: Mark Rousskov <mark.simulacrum@gmail.com>

Activity

  1. Kobzol commented on Jun 29, 2026

    @Kobzol
    Member

    This is caused by the same underlying problem as #430. Because we use backticks to ignore bors commands, but at the same time sometimes you want to treat backticks as actual text, and not Markdown.

  2. tgross35 commented on Oct 2, 2026

    @tgross35
    Member

    Just hit this again at rust-lang/rust#151793 (comment). Could we steal toml syntax and use """ ... """ as quoting without escaping? That could allow multiline messages too.

  3. tgross35 commented on Oct 2, 2026

    @tgross35
    Member

    Also I was a bit surprised when I couldn't fix the message either rust-lang/rust#151793 (comment) :)

  4. Kobzol commented on Oct 2, 2026

    @Kobzol
    Member

    Good point, #869 allows squashing PRs with a single PR.

    Regarding the syntax, that would require some non-trivial changes to the parser. CC @medzernik if you want to take a look.

  5. medzernik commented on Oct 2, 2026

    @medzernik
    Contributor

    Good point, #869 allows squashing PRs with a single PR.

    Regarding the syntax, that would require some non-trivial changes to the parser. CC @medzernik if you want to take a look.

    Sure! I'll add this to my list :D

    @rustbot claim

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions