Commit a7a36fcc authored by Kerri Miller's avatar Kerri Miller

Merge branch 'aw-fix-cancel-pipeline-mutation' into 'master'

Change pipeline status to canceled

See merge request gitlab-org/gitlab!84774
parents 0d512cf4 4747bd59
......@@ -13,6 +13,8 @@ module Mutations
if pipeline.cancelable?
pipeline.cancel_running
pipeline.cancel
{ success: true, errors: [] }
else
{ success: false, errors: ['Pipeline is not cancelable'] }
......
......@@ -47,5 +47,6 @@ RSpec.describe 'PipelineCancel' do
expect(response).to have_gitlab_http_status(:success)
expect(build.reload).to be_canceled
expect(pipeline.reload).to be_canceled
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment