Skip to content

Commit

Permalink
Ignore review comment when ref commit is missed (go-gitea#16905) (go-…
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny authored Sep 2, 2021
1 parent e70b679 commit 8b132bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/migrations/gitea_uploader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8b132bd

Please sign in to comment.