Skip to content

Commit a8c7f9a

Browse files
committed
Ignore review comment when ref commit is missed (go-gitea#16905)
1 parent e70b679 commit a8c7f9a

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)