Reference

apex why

Explain why a run happened — or, with --delivery, why a webhook produced no run at all

apex why [options] [run]

With an API token, needs the permission actions:read.

Arguments
ArgumentDescription
[run]run id, #number, or "latest"
Options
OptionDescription
--repo <owner/repo>limit the run search to one repository
--delivery <id>explain a webhook delivery instead of a run
--jsonprint the explanation as JSON

Examples

Why a run happened: the event, the workflow and the rule that matched.

apex why 4812

Why a webhook produced no run at all.

apex why --delivery 7c1e0a52-3b9f-11ef-8e6b-2f4d1c9a0b77