1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-11-23 21:44:44 +02:00

Always send a status back to forge (#1751)

This commit is contained in:
qwerty287
2023-05-14 14:18:43 +02:00
committed by GitHub
parent 94e63b43f2
commit a15821428f
11 changed files with 54 additions and 45 deletions

View File

@@ -26,7 +26,7 @@ import (
)
// Approve update the status to pending for blocked pipeline because of a gated repo
// and start them afterwards
// and start them afterward
func Approve(ctx context.Context, store store.Store, currentPipeline *model.Pipeline, user *model.User, repo *model.Repo) (*model.Pipeline, error) {
if currentPipeline.Status != model.StatusBlocked {
return nil, ErrBadRequest{Msg: fmt.Sprintf("cannot decline a pipeline with status %s", currentPipeline.Status)}