Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix showing success message if PR force-merge fails. #1016

Merged
merged 1 commit into from
Jan 17, 2018

Conversation

tech4him1
Copy link
Contributor

@tech4him1 tech4him1 commented Jan 17, 2018

- Summary

This happens when a PR must be approved first, and the user does not have force-merge permissions to override the review requirement. Before, the CMS was simply deleting the branch/PR and reporting success, whereas it should report failure and leave the branch open until an admin can merge.

Fixes #1019.

- Test plan

Manually tested.

- Description for the changelog

Fix showing success message if PR force-merge fails.

- A picture of a cute animal (not mandatory but encouraged)
mikhail-vasilyev-253977

@verythorough
Copy link
Contributor

verythorough commented Jan 17, 2018

Deploy preview for netlify-cms-www ready!

Built with commit cda55bc

https://deploy-preview-1016--netlify-cms-www.netlify.com

@verythorough
Copy link
Contributor

verythorough commented Jan 17, 2018

Deploy preview for cms-demo ready!

Built with commit cda55bc

https://deploy-preview-1016--cms-demo.netlify.com

@tech4him1 tech4him1 changed the title Update API.js Fix showing success message if PR force-merge fails. Jan 17, 2018
Copy link
Collaborator

@talves talves left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM also

@verythorough verythorough merged commit 6ccc253 into master Jan 17, 2018
@verythorough verythorough deleted the approval-required branch January 17, 2018 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Publishing silently fails and closes PR when repo has required reviews enabled
4 participants