Bug: Commit message for applying suggestions is taken from fork even though message from main repo is shown
Summary
When applying a suggestion in a merge request from a fork against the main repository, the UI shows the default message from the main repository. However, when applying it, the actual commit message is the one configured in the fork.
Steps to reproduce
- Create a fork from a repository.
- Configure a different default commit message for applying suggestions than in the main repository.
- Create an MR from a branch in the fork against the main repository.
- Suggest a change.
- When applying the suggestion, check that the commit message shown is the one configured in the main repository.
- After applying the suggestion, check that the actual commit message is the one configured in the fork repository.
Example Project
What is the current bug behavior?
The actual commit message of accepted suggestions differs from the one shown when applying it.
What is the expected correct behavior?
The actual commit message of accepted suggestions is the one configured in the main repository (which is also shown when applying the suggestion).
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
Related to #354470 (closed)