figma-plugin icon indicating copy to clipboard operation
figma-plugin copied to clipboard

Add error handling when trying to push to protected branch

Open six7 opened this issue 3 years ago • 0 comments

Discussed in https://github.com/six7/figma-tokens/discussions/1253

Originally posted by efbe September 6, 2022 Hello,

When I turn on the "Require a pull request before merging" along with "Do not allow bypassing the above settings" under the "Protect matching branches" in "Branch protection rules" section for Branch settings on Github to disable direct commits to a protected branch like 'master' I can still push from the plugin UI which is fine, but the result is an infinite loading screen about "Pushing to Github" (see attached image).

protected-branch-push-2

If it's possible could you add some error handling to this screen, please.

Thank you in advance.

six7 avatar Sep 06 '22 18:09 six7