Skip to content
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

fix: pass gitlab mergerequest param via json body #322

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

olblak
Copy link

@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]>
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.

1 participant