Skip to content

sync-pr-commit-title renames PR to "Merge pull request #XXX from <branch>" #2713

Closed

Description

@Blaisorblade

Thanks to #1743, PRs are renamed to the merge commit title. However, that's typically an uninformative message, such as "Merge pull request #XXX from " — the PRs then shouldn't be renamed, but are, per the screenshot. The automated rename is

Blaisorblade changed the title Complete supporting guarded pDOT: Allow paths as value definitions, try 2 Merge pull request #155 from Blaisorblade/path-defs-rebase-2

(I later renamed this back by hand).

Disabling sync-pr-commit-title fixes the problem. Unfortunately, I'm only merging PRs in a private repo, so I can't (yet) give a public link (but I should be able to, soon).

image

Activity

  1. fregante commented on Jan 20, 2020

    @fregante
    Member

    sync-pr-commit-title lets you disable the feature before merge:

    You can just click cancel

  2. Blaisorblade commented on Jan 20, 2020

    @Blaisorblade
    Author

    Thanks for the answer; the real bug is the default title, but that isn't due to this extension.
    GitHub proposes Merge pull request #XXX from ... as commit title, but only on some repos :-(.

  3. fregante commented on Jan 20, 2020

    @fregante
    Member

    Actually sync-pr-commit-title is made of two parts:

    1. First it copies the PR title to the PR commit title (even for merge commits, it should replace the default Merges...)
    2. Then if the user make changes to this title, it should also update the PR title

    So in this case it appears that the first part failed (so it remained Merges...) while the second part succeeded (so it set the PR title to Merges...)

    If this behavior is reproducible, this is a bug somewhere here:

    https://github.com/sindresorhus/refined-github/blob/22764b8ba0475cef2a87adf134acb828852daaa8/source/features/sync-pr-commit-title.tsx#L78-L89

  4. jsumners commented on Jan 21, 2020

    @jsumners

    @Blaisorblade thank you for filing this issue. It helped me figure out what to disable to get rid of this annoyance.

  5. Blaisorblade commented on Jan 21, 2020

    @Blaisorblade
    Author

    @jsumners A request: has it occurred on a public repo? Can you post a link? All my examples are on a private repo 😕.

  6. jsumners commented on Jan 21, 2020

    @jsumners

    @Blaisorblade sorry, I am only seeing this in my private repos at the moment.

  7. thibaudcolas commented on Jan 21, 2020

    @thibaudcolas

    This just happened to me on a public repo if it helps: wagtail/vagrant-wagtail-develop#24

    This was the first time I used this feature (I’ve just installed the extension), I did notice the messaging announcing the change and offering to cancel, but thought I’d see what happens.

    I can confirm that part 1. “First it copies the PR title to the PR commit title” (#2713 (comment)) didn’t work – the PR commit was using the default merge commit wording.

  8. Amorymeltzer commented on Jan 23, 2020

    @Amorymeltzer

    I think @thibaudcolas' report is sufficient, but FWIW I've been running into this same thing multiple times (one example: wikimedia-gadgets/twinkle#808). This is an awesome help, but simply clicking GH's merge button shouldn't default to something much less useful.

  9. MathieuDerelle commented on Jan 24, 2020

    @MathieuDerelle

    I've made a public repo just for it if that can help.
    https://github.com/MathieuDerelle/refined-github-issue
    (mode details in the closed (dupe) issue linked above)

  10. jetersen commented on Jan 28, 2020

    @jetersen
    Contributor

    jenkinsci/bom#180 was also affected

  11. self-assigned this
    on Jan 28, 2020
  12. fregante commented on Jan 28, 2020

    @fregante
    Member

    I'll limit this feature to squashing commits.

  13. fregante commented on Jan 28, 2020

    @fregante
    Member

    Fixed. At some point we'll publish a new release. Currently we're still waiting for the Chrome Web Store to publish the last update.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions