GitHub CI/CD: build merge_commit_sha
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Proposal
When using GitLab's GitHub CI/CD integration (https://docs.gitlab.com/ee/ci/ci_cd_for_external_repos/github_integration.html) the only option for the Checks is to build the last commit of the Pull Request branch. However, competitors (e.g. Travis) have the option to build the GitHub-crafted merge commit.
Each time a Pull Request is opened or the base branch is updated, GitHub recreates a merge commit which defines the state after merging the Pull Request with master/main. This feature avoids approving PR's which are not tested with the latest upstream commit. My team - as paying customers - would really love to use this.
The proposal is to add a (default = 'off') checkmark to the GitHub Integration settings in GitLab. Setting this checkmark means that the WebHook from GitHub with the Pull Request information is interpreted differently: instead of building the HEAD commit it will build the commit in the property "merge_commit_sha" (https://docs.github.com/en/rest/reference/pulls).