You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit-queue should automatically handle PRs with merge commits from the target branch #967
Some contributors merge into their PR branch from main rather than rebasing. We might not recommend this, but it shouldn't be a major issue. Unfortunately it seems that the commit-queue label can't handle this, and fails with:
error: commit ... is a merge but no -m option was given.
fatal: cherry-pick failed
it feels like we should be able to handle these automatically without much trouble.
It would require changing how to pick up commits quite a lot though, and would only work for --fixupAll/commit-queue-squash landing sessions. Currently we download the patches from http://github.com/nodejs/node/pulls/${PR_ID}.patch, but in order to support merge commits, we'd probably have to fetch to actual PR head branch
I thought merge commits weren't supported by the Jenkins CI workflows anyway but it looks like it wasn't an issue for that PR
FWIW the Jenkins CI doesn't explicitly block merge commits but it does attempt to rebase PRs onto the base branch (e.g. main) and it's that rebase that more often than not fails for merge commits.
Activity
aduh95 commentedon Aug 12, 2025
It would require changing how to pick up commits quite a lot though, and would only work for
--fixupAll/commit-queue-squashlanding sessions. Currently we download the patches fromhttp://github.com/nodejs/node/pulls/${PR_ID}.patch, but in order to support merge commits, we'd probably have to fetch to actual PR head branchtargos commentedon Aug 12, 2025
I thought merge commits weren't supported by the Jenkins CI workflows anyway but it looks like it wasn't an issue for that PR
aduh95 commentedon Aug 12, 2025
Maybe a side effect of having
COMMIT_SHA_CHECKis that the CI now supports merge commits?richardlau commentedon Aug 12, 2025
FWIW the Jenkins CI doesn't explicitly block merge commits but it does attempt to rebase PRs onto the base branch (e.g.
main) and it's that rebase that more often than not fails for merge commits.