update build project if needed when build pending
This commit is contained in:
parent
debbee17eb
commit
1f4e1ac35e
@ -459,6 +459,10 @@ func processPullNotification(gitea common.Gitea, thread *models.NotificationThre
|
||||
gitea.AddReviewComment(pr, common.ReviewStatePending, msg)
|
||||
|
||||
case common.ReviewStatePending:
|
||||
if err := startOrUpdateBuild(git, gitea, pr, obsClient); err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
err := fetchPrGit(git, pr)
|
||||
if err != nil {
|
||||
log.Println("Cannot fetch PR git:", pr.URL)
|
||||
|
Loading…
x
Reference in New Issue
Block a user