summaryrefslogtreecommitdiffstats
path: root/modules/migrations
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2021-09-01 19:33:07 +0800
committerGitHub <noreply@github.com>2021-09-01 12:33:07 +0100
commitde2e96e37b58eebd0cee1def7f07e6e96023c207 (patch)
tree933335b60d40385ca0650223817860b2d1d6f718 /modules/migrations
parent7062614deeb7dd76a6a0a0426e5cce96055e9a0c (diff)
downloadgitea-de2e96e37b58eebd0cee1def7f07e6e96023c207.tar.gz
gitea-de2e96e37b58eebd0cee1def7f07e6e96023c207.zip
Ignore review comment when ref commit is missed (#16905)
Diffstat (limited to 'modules/migrations')
-rw-r--r--modules/migrations/gitea_uploader.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/migrations/gitea_uploader.go b/modules/migrations/gitea_uploader.go
index c5eca35b2e..f8fb52fa02 100644
--- a/modules/migrations/gitea_uploader.go
+++ b/modules/migrations/gitea_uploader.go
@@ -880,7 +880,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