cli/api
Pavel Borzenkov 3afec6f90a api: gracefully handle already deleted remote refs
If a GitHub repo is configured to automatically delete branches after PR
is merged, `gh pr merge` fails with error like:

failed to delete remote branch: ... (422): 'Reference does not exist'

Gracefully handle such case and don't report the error.

Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
2020-06-27 19:10:42 +03:00
..
client.go api: return structured error for failed API calls 2020-06-27 18:47:34 +03:00
client_test.go api: return structured error for failed API calls 2020-06-27 18:47:34 +03:00
pull_request_test.go Prevent crash when encountering "STALE" check conclusion 2020-03-27 09:54:11 +01:00
queries_gist.go just use a map + stdin test 2020-05-20 17:44:09 -05:00
queries_issue.go just return the err 2020-04-30 08:59:14 -07:00
queries_issue_test.go Improved error message when "owner/repo" format not provided (#919) 2020-05-18 11:13:48 +02:00
queries_org.go Order projects, teams, and labels by name 2020-05-08 18:22:14 +02:00
queries_pr.go api: gracefully handle already deleted remote refs 2020-06-27 19:10:42 +03:00
queries_pr_test.go api: gracefully handle already deleted remote refs 2020-06-27 19:10:42 +03:00
queries_repo.go Remove convertRepoInterfaceToRepository 2020-05-20 11:19:31 -07:00
queries_repo_test.go Improved error message when "owner/repo" format not provided (#919) 2020-05-18 11:13:48 +02:00
queries_user.go Stop providing AuthLogin from context 2020-05-20 17:09:13 +02:00