diff options
Diffstat (limited to 'app/graphql/mutations/ci/pipeline/cancel.rb')
-rw-r--r-- | app/graphql/mutations/ci/pipeline/cancel.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/graphql/mutations/ci/pipeline/cancel.rb b/app/graphql/mutations/ci/pipeline/cancel.rb index 3fb34a37cfc..3ec6eee9f54 100644 --- a/app/graphql/mutations/ci/pipeline/cancel.rb +++ b/app/graphql/mutations/ci/pipeline/cancel.rb @@ -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'] } |