Creating pull requests or merge requests with systems such as GitLab is very easy. First of all, when we push a new branch to the central repository from the command line, we can observe the following message:
remote:
remote: To create a merge request for fix-ci-cd, visit:
remote: https://gitlab.com/hosacpp/continuous-integration/merge_requests/new?merge_request%5Bsource_branch%5D=fix-ci-cd
remote:
If you previously had CI enabled (by adding the .gitlab-ci.yml file), you'll also see that the newly pushed branch has been subjected to the CI process. This occurs even before you open a merge request, and it means you can postpone tagging your colleagues until you get information from CI that every automated check has passed.
The two main ways to open a merge request are as follows:
- By following the link mentioned in the push message
- By navigating to merge requests in the GitLab UI and selecting the...