Browse Source

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

backport #16905
tags/v1.15.1
Lunny Xiao 4 years ago committed by GitHub
parent
commit
8b132bdec6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      modules/migrations/gitea_uploader.go

3
modules/migrations/gitea_uploader.go

@ -808,7 +808,8 @@ func (g *GiteaLocalUploader) CreateReviews(reviews ...*base.Review) error {
}
headCommitID, err := g.gitRepo.GetRefCommitID(pr.GetGitRefName())
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

Loading…
Cancel
Save