diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2021-09-02 18:51:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-02 11:51:32 +0100 |
commit | 8b132bdec62258e1586c06977e8861c2468bf730 (patch) | |
tree | 45c05955240884acc3b2a096718b258629555235 | |
parent | e70b679d21d1e5f1e2cc2393d3b3f64edbab518f (diff) | |
download | gitea-8b132bdec62258e1586c06977e8861c2468bf730.tar.gz gitea-8b132bdec62258e1586c06977e8861c2468bf730.zip |
Ignore review comment when ref commit is missed (#16905) (#16919)
backport #16905
-rw-r--r-- | modules/migrations/gitea_uploader.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/migrations/gitea_uploader.go b/modules/migrations/gitea_uploader.go index e422bb54ce..d1960d2d55 100644 --- a/modules/migrations/gitea_uploader.go +++ b/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 |