Skip to content

Commit 8b132bd

Browse files
authored
Ignore review comment when ref commit is missed (#16905) (#16919)
backport #16905
1 parent e70b679 commit 8b132bd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/migrations/gitea_uploader.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,8 @@ func (g *GiteaLocalUploader) CreateReviews(reviews ...*base.Review) error {
808808
}
809809
headCommitID, err := g.gitRepo.GetRefCommitID(pr.GetGitRefName())
810810
if err != nil {
811-
return fmt.Errorf("GetRefCommitID[%s]: %v", pr.GetGitRefName(), err)
811+
log.Warn("GetRefCommitID[%s]: %v, the review comment will be ignored", pr.GetGitRefName(), err)
812+
continue
812813
}
813814

814815
var patch string

0 commit comments

Comments
 (0)