Skip to content

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

Description

@ckingbailey

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions