提交 6e011f2c 编写于 作者: A Artur Spychaj

Delete the PR branch if nothing to merge

上级 bedaa5e6
......@@ -121,6 +121,8 @@ git commit
// 422 (Unprocessable Entity) indicates there were no commits to merge
if (response.StatusCode == (HttpStatusCode)422)
{
// Delete the pr branch if the PR was not created.
await _client.DeleteAsync($"repos/{repoOwner}/{repoName}/git/refs/heads/{prBranchName}");
return response;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册