-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GitLab integration fails with detached pipelines for mere requests #104
Comments
This seems to be related to https://gitlab.com/gitlab-org/gitlab/-/issues/288876 |
So, I think there are two separate changes that need to happen. First, Second, inside the same function, when |
The following GitLab pipeline script is a viable workaround:
|
Interesting. Your proposed fix explanation makes sense. If you don't mind, could you open a PR? I'm not sure if I can test with an actual detached pipeline since it's a premium feature. |
@christophebedard yeah, yesterday it took me a while to distill the problem. The one thing that worries me is the apparent need to |
@zyga as long as it's only used/called when needed (for detached pipelines) then I think it's fine. |
Our project is using pipelines for merge requests. This feature is documented at https://docs.gitlab.com/ee/ci/merge_request_pipelines/
In the default recommended setup, dco-check 0.0.11 fails as follows:
Some extra debugging shows more information, interestingly
CI_COMMIT_BRANCH
is obviously missing andCI_MERGE_REQUEST_EVENT_TYPE=detached
indicates that this is a detached merge request.I think that in this mode, it's sufficient to use
CI_COMMIT_REF_NAME
instead.The text was updated successfully, but these errors were encountered: