Right now it's not possible to find out whether a GitLab CI build is triggered by submitting a merge request. With merge request id provided, it'll possible to use tools like code coverage, static code analyzers and so on. Travis and CircleCI both expose something similar
Regarding merge_request.iid - I want to use this variable to get merge request changes by REST API and there I have to use global MR id, like this:https://gitlab.com/api/v3/projects/1071592/merge_requests/418901/changes, where this MR is returned as:
We're needing to know what MR caused a CI stage to trigger so we can do additional validation on the code that changed and the files that were changed in this specific merge request.
edit: Another use we're needing this for is to look at the commits in the MR so we can do commit message validation. Right now you can only do commit message validation for direct pushes to the upstream and not at the MR level.
GitLab is moving all development for both GitLab Community Edition
and Enterprise Edition into a single codebase. The current
gitlab-ce repository will become a read-only mirror, without any
proprietary code. All development is moved to the current
gitlab-ee repository, which we will rename to just gitlab in the
coming weeks. As part of this migration, issues will be moved to the
current gitlab-ee project.
If you have any questions about all of this, please ask them in our
dedicated FAQ issue.
Using "gitlab" and "gitlab-ce" would be confusing, so we decided to
rename gitlab-ce to gitlab-foss to make the purpose of this FOSS
repository more clear
I created a merge requests for CE, and this got closed. What do I
need to do?
Everything in the ee/ directory is proprietary. Everything else is
free and open source software. If your merge request does not change
anything in the ee/ directory, the process of contributing changes
is the same as when using the gitlab-ce repository.
Will you accept merge requests on the gitlab-ce/gitlab-foss project
after it has been renamed?
No. Merge requests submitted to this project will be closed automatically.
Will I still be able to view old issues and merge requests in
gitlab-ce/gitlab-foss?
Yes.
How will this affect users of GitLab CE using Omnibus?
No changes will be necessary, as the packages built remain the same.
How will this affect users of GitLab CE that build from source?
Once the project has been renamed, you will need to change your Git
remotes to use this new URL. GitLab will take care of redirecting Git
operations so there is no hard deadline, but we recommend doing this
as soon as the projects have been renamed.
Where can I see a timeline of the remaining steps?