-
-
Notifications
You must be signed in to change notification settings - Fork 98
feat(gitlab/mergerequest): configure additional fields during mr creation #5094
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
Conversation
It looks good to me, I am wondering why the test is failing as it doesn't look like the usual flaky e2e tests |
I had a quick look to the drone/go-scm library and there, they always return the response, which is useful to get additional information https://github.com/drone/go-scm/blob/a515870a3931d01562ab61723891462134a3277f/scm/driver/gitlab/pr.go#L80 Especially when the request fails for situation like authentication issues that are not catch by the err handling |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the pullrequest.
While I tested it, I didn't try to open a mergerequest
This PR add support of setting additional Gitlab MR options during it's creation:
labels
reviewers
assignees
squash
removeSourceBranch
Additional Information
All interaction with Gitlab in gitlab/mergerequest action have been rewritten using gitlab-api-client-go libarary