-
- Downloads
There was an error fetching the commit references. Please try again later.
Fix updating merge_when_build_succeeds via merge API endpoint
When updating a merge request via the `/merge` endpoint we check the `mergeable` and `mergeable_state` status, these will return `false` if the application option only_allow_merge_if_pipeline_succeeds is enabled. We should skip CI checks if the request uses the merge_when_pipeline_succeeds param Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/22740
parent
a3b5381e
No related branches found
No related tags found
Pipeline #
Showing
- changelogs/unreleased/mrchrisw-22740-merge-api.yml 4 additions, 0 deletionschangelogs/unreleased/mrchrisw-22740-merge-api.yml
- lib/api/merge_requests.rb 4 additions, 3 deletionslib/api/merge_requests.rb
- spec/requests/api/merge_requests_spec.rb 13 additions, 1 deletionspec/requests/api/merge_requests_spec.rb
Please register or sign in to comment