Skip to content

clear-pr-merge-commit-message should not clear non-squashed merge commit messages #8399

Closed

Description

@cpmsmith

The clear-pr-merge-commit-message now clears the commit message even for merge commits, whereas previously it only cleared when squashing. Based on this exchange, it looks like this is an intentional change, which is why I'm opening this as "under discussion":

A comment and response in which fregante confirms to yutotakano that the behaviour change is intentional

The feature description in the wiki only talks about clearing squashed commits, and under default settings, clearing a merge commit's body will leave only "Merge pull request #​123 from org/repo", removing the PR's title, which is useful information not otherwise included in the commit history.

I would argue the original behaviour was sensible, and it should remain that way. If that's not acceptable, then at least the wiki should be updated.

Activity

  1. changed the title [-]`clear-pr-merge-commit-message` should not clear merge commit messages[/-] [+]`clear-pr-merge-commit-message` should not clear non-squashed merge commit messages[/+] on Apr 11, 2025
  2. added
    small
    on Apr 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

acceptedbugsmall

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions