update build project if needed when build pending

This commit is contained in:
Adam Majer 2025-03-10 13:44:59 +01:00
parent debbee17eb
commit 1f4e1ac35e

View File

@ -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)