Skip to content

normalize-pr-title keeps a stale title when its type still conforms #601

Done

Description

@Shinrai

normalize-pr-title only replaces a PR title when the title's type doesn't match the branch's range. If the commits are rewritten so the title's summary no longer matches any commit, it keeps the old title as long as the type still conforms. The merge commit then carries a subject none of the commits has.

Seen on node-android-tv-remote#123: it opened as "deps: bump @eslint/markdown to 9.0.0" because two deps: commits tied and the newer one won. That commit was then folded into "deps: bump the CLDMV dev tools" and the branch was force-pushed. The body regenerated from the single commit, but the title stayed, since a deps: title conforms to a deps range. It had to be retitled by hand.

Fix: when the current title's summary matches no commit subject in the range, take the highest commit's subject, the same as for a non-conforming title. Keep a title that matches one of the commits, so a deliberate choice among several commits isn't overwritten.

Activity

  1. added
    type: bug
    priority: medium
    status: not started
    on Nov 29, 2026
  2. added a commit that references this issue on Nov 29, 2026
    207d901
  3. added
    status: implemented
    and removed
    status: not started
    on Nov 29, 2026
  4. cldmv-bot commented on Nov 29, 2026

    @cldmv-bot
    Contributor

    Marked status: implemented — resolved by #602, merged into next. This issue closes automatically when that work ships to the default branch.

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

    priority: mediumstatus: implementedtype: bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions