GitHub import fails for collaborators without `Write` access
Summary
To import GitHub pull requests, any pull request source branches that had been deleted are temporarily restored on GitHub using their [References API] (https://developer.github.com/v3/git/refs/#create-a-reference). To be able to create refs
, the user should have at least the Write
access to the Github repo.
Description
GitHub API returns 404
for users with Read
access when creating refs
for a repository.
Expected Behavior
Improve warning message, and skip PR's where the source branches had been deleted for the user that doesn't haveWrite
access to the GitHub repo.
/cc @royaldark