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

Handle errors in get-master/create-branch/add-file/create-pull-request process #14

Open
ckingbailey opened this issue Mar 1, 2020 · 0 comments

Comments

@ckingbailey
Copy link
Owner

ckingbailey commented Mar 1, 2020

In all cases, clean up after myself if process failed.

  • Delete created branch

Possible errors

From create-branch endpoint

422 Unprocessable Entity

"message": "Reference already exists",
"documentation_url": "https://developer.github.com/v3/git/refs/#create-a-reference"

From get-master endpoint

404 Not Found: Master branch does not exist

When creating new file via the content endpoint

InvalidCharacterError thrown by window.btoa() when users enters non-ASCII character in any field.

@ckingbailey ckingbailey changed the title Handle errors in create branch/add file/create pull request process Handle errors in get-master/create-branch/add-file/create-pull-request process Mar 1, 2020
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

No branches or pull requests

1 participant