Squash MR error messages are not shown in widget
First, apply this diff locally, to make squashing always fail:
diff --git a/ee/app/services/merge_requests/squash_service.rb b/ee/app/services/merge_requests/squash_service.rb
index 8e5b53bf31..4e7e8d2432 100644
--- a/ee/app/services/merge_requests/squash_service.rb
+++ b/ee/app/services/merge_requests/squash_service.rb
@@ -10,6 +10,8 @@ module MergeRequests
end
def squash
+ return false
+
if merge_request.commits_count <= 1
return success(squash_sha: merge_request.diff_head_sha)
end
Then, create an MR with more than one commit, and set it to squash when merging.
If you click merge, you should see the error message 'Failed to squash. Should be done manually.'
This is not shown, even though it's in the JSON response:
Edited by Sean McGivern