Skip to content

tools: use GitHub Squash and Merge feature when using CQ

GitHub REST API allows us to edit the commit message when using "Squash and Merge" feature, that would allow the CQ to "purple merge" PRs without needing to force-push to the user branch when the PR contains one commit max.

I've tested locally with https://github.com/nodejs/node-auto-test/pull/37, I also tried to test it using the CQ in https://github.com/nodejs/node-auto-test/pull/40 but the CQ is not working there. I think we should land this, and revert if it's broken.

Refs: https://docs.github.com/en/rest/reference/pulls#merge-a-pull-request

Merge request reports

Loading