Skip to content

Commit de2e96e

Browse files
authored
Ignore review comment when ref commit is missed (#16905)
1 parent 7062614 commit de2e96e

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
@@ -880,7 +880,8 @@ func (g *GiteaLocalUploader) CreateReviews(reviews ...*base.Review) error {
880880
}
881881
headCommitID, err := g.gitRepo.GetRefCommitID(pr.GetGitRefName())
882882
if err != nil {
883-
return fmt.Errorf("GetRefCommitID[%s]: %v", pr.GetGitRefName(), err)
883+
log.Warn("GetRefCommitID[%s]: %v, the review comment will be ignored", pr.GetGitRefName(), err)
884+
continue
884885
}
885886

886887
var patch string

0 commit comments

Comments
 (0)