Fix wrong hint when deleting a branch successfully from pull request UI (#22673)

Fix #18785
此提交包含在:
Lunny Xiao
2023-01-31 22:11:48 +00:00
提交者 GitHub
父節點 f1f0430f9f
當前提交 cc910014ab
共有 2 個檔案被更改,包括 2 行新增2 行删除
+1 -1
查看文件
@@ -1395,7 +1395,7 @@ func CleanUpPullRequest(ctx *context.Context) {
}
func deleteBranch(ctx *context.Context, pr *issues_model.PullRequest, gitRepo *git.Repository) {
fullBranchName := pr.HeadRepo.Owner.Name + "/" + pr.HeadBranch
fullBranchName := pr.HeadRepo.FullName() + ":" + pr.HeadBranch
if err := repo_service.DeleteBranch(ctx.Doer, pr.HeadRepo, gitRepo, pr.HeadBranch); err != nil {
switch {
case git.IsErrBranchNotExist(err):