Skip to content

Commit 934dddc

Browse files
zakiskpipelines-as-code[bot]
authored andcommitted
chore: add PipelineRun status in logs when creating PipelineRun
Signed-off-by: Zaki Shaikh <[email protected]>
1 parent 9e43cbb commit 934dddc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/pipelineascode/pipelineascode.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@ func (p *PacRun) startPR(ctx context.Context, match matcher.Match) (*tektonv1.Pi
213213
}
214214

215215
// Create status with the log url
216-
p.logger.Infof("pipelinerun %s has been created in namespace %s for SHA: %s Target Branch: %s",
217-
pr.GetName(), match.Repo.GetNamespace(), p.event.SHA, p.event.BaseBranch)
216+
p.logger.Infof("PipelineRun %s has been created in namespace %s with status %s for SHA: %s Target Branch: %s",
217+
pr.GetName(), match.Repo.GetNamespace(), pr.Spec.Status, p.event.SHA, p.event.BaseBranch)
218218

219219
consoleURL := p.run.Clients.ConsoleUI().DetailURL(pr)
220220
mt := formatting.MessageTemplate{

0 commit comments

Comments
 (0)