sindresorhus/refined-github

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

Blaisorblade posted onGitHub

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 <branch>" — 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

<!-- Thanks for reporting a bug! ⛰ 1. Make sure the bug is caused by Refined GitHub. Try disabling the extension first. 2. Include a full URL where the bug appears. 3. Include a screenshot/gif Issues without a URL/screenshot will be closed -->


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

You can just click cancel

posted by fregante about 5 years ago

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 :-(.

posted by Blaisorblade about 5 years ago

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

posted by fregante about 5 years ago

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

posted by jsumners about 5 years ago

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

posted by Blaisorblade about 5 years ago

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

posted by jsumners about 5 years ago

This just happened to me on a public repo if it helps: https://github.com/wagtail/vagrant-wagtail-develop/pull/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” (https://github.com/sindresorhus/refined-github/issues/2713#issuecomment-576419830) didn’t work – the PR commit was using the default merge commit wording.

posted by thibaudcolas about 5 years ago

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

posted by Amorymeltzer about 5 years ago

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)

posted by MathieuDerelle about 5 years ago
posted by casz about 5 years ago

I'll limit this feature to squashing commits.

posted by fregante about 5 years ago

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.

posted by fregante about 5 years ago

Fund this Issue

$0.00
Funded

Pull requests