1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-25 18:14:28 +00:00

Ignore review comment when ref commit is missed (#16905) (#16919)

backport #16905
This commit is contained in:
Lunny Xiao 2021-09-02 18:51:32 +08:00 committed by GitHub
parent e70b679d21
commit 8b132bdec6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -808,7 +808,8 @@ func (g *GiteaLocalUploader) CreateReviews(reviews ...*base.Review) error {
} }
headCommitID, err := g.gitRepo.GetRefCommitID(pr.GetGitRefName()) headCommitID, err := g.gitRepo.GetRefCommitID(pr.GetGitRefName())
if err != nil { if err != nil {
return fmt.Errorf("GetRefCommitID[%s]: %v", pr.GetGitRefName(), err) log.Warn("GetRefCommitID[%s]: %v, the review comment will be ignored", pr.GetGitRefName(), err)
continue
} }
var patch string var patch string