jfrog / froggit-go

Froggit-Go is a universal Go library, allowing to perform actions on VCS providers.
https://pkg.go.dev/github.com/jfrog/froggit-go
Apache License 2.0
45 stars 17 forks source link

Fix GitLab Update MR #119

Closed EyalDelarea closed 1 year ago

EyalDelarea commented 1 year ago

Bug description:

We used close/open for state_event object when updating GitLab Merge Request. Which resolved in panic and errors from the api.


state_event string no New state (close/reopen).

Fix:

Update to valid states, update open -> reopen.

GitLab api docs: https://docs.gitlab.com/ee/api/merge_requests.html#update-mr

github-actions[bot] commented 1 year ago
[![](https://raw.githubusercontent.com/jfrog/frogbot/master/resources/v2/noVulnerabilityBannerPR.png)](https://github.com/jfrog/frogbot#readme)

[🐸 JFrog Frogbot](https://github.com/jfrog/frogbot#readme)