Skip to content

Commit 3e80866

Browse files
committed
chore: add comment for Run func
Signed-off-by: Zaki Shaikh <zashaikh@redhat.com>
1 parent e76ae6c commit 3e80866

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/pipelineascode/pipelineascode.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ func NewPacs(event *info.Event, vcx provider.Interface, run *params.Run, pacInfo
5454
}
5555
}
5656

57+
// Run is the main orchestration entrypoint for processing a single incoming event.
58+
// It matches the event to repository rules, creates or updates Tekton PipelineRuns,
59+
// manages concurrency (including pending/queued state), emits provider statuses,
60+
// and finally patches PipelineRuns with execution order information when applicable.
61+
// The call blocks until all asynchronous operations launched for this event complete.
62+
// Context is used to propagate deadlines/cancellation to downstream clients.
5763
func (p *PacRun) Run(ctx context.Context) error {
5864
matchedPRs, repo, err := p.matchRepoPR(ctx)
5965
if repo != nil && p.event.TriggerTarget == triggertype.PullRequestClosed {

0 commit comments

Comments
 (0)