Skip to content

fix: pass gitlab mergerequest param via json body #322

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

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

olblak
Copy link
Contributor

@olblak olblak commented Aug 29, 2024

When opening a merge request on GitLab, the current implementation pass all the parameters via the URL parameters instead of using the HTTP body.
The problem is that the amount of information that can be provided via URL parameter is very limited, which lead to not being able to create a merge request.

Test

On top of the unit test, I tested this change on a different project:

Screenshot

image

Additional Information

Potential improvement

I also noticed that function ⁣CreateComment use URL parameter and I think it could also be improved but I am not using that function on my project

olblak added a commit to olblak/updatecli that referenced this pull request Aug 29, 2024
Use a fork of the drone/go-scm project until drone/go-scm#322 is
merged and available.

More information on updatecli#2429
olblak added a commit to olblak/updatecli that referenced this pull request Aug 29, 2024
Use a fork of the drone/go-scm project until drone/go-scm#322 is
merged and available.

More information on updatecli#2429
olblak added a commit to updatecli/updatecli that referenced this pull request Aug 29, 2024
* fix: gitlab token configuration

Signed-off-by: Olblak <[email protected]>

* fix: pass gitlab MR parameter via http body

Use a fork of the drone/go-scm project until drone/go-scm#322 is
merged and available.

More information on #2429

---------

Signed-off-by: Olblak <[email protected]>
olblak added a commit to olblak/updatecli that referenced this pull request Sep 3, 2024
* fix: gitlab token configuration

Signed-off-by: Olblak <[email protected]>

* fix: pass gitlab MR parameter via http body

Use a fork of the drone/go-scm project until drone/go-scm#322 is
merged and available.

More information on updatecli#2429

---------

Signed-off-by: Olblak <[email protected]>
@olblak
Copy link
Contributor Author

olblak commented Oct 7, 2024

@abhinav-harness could you take a look at this pull request, as it fix a bug with the GitLab merge request creation

@olblak
Copy link
Contributor Author

olblak commented Nov 21, 2024

@abhinav-harness Would it be possible to have this pullrequest available in a futur release?

@abhinav-harness abhinav-harness merged commit d5ed63c into drone:master Nov 21, 2024
1 check passed
@abhinav-harness
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants