0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-04-27 08:35:23 +02:00

1 Commits

Author SHA1 Message Date
Davide
177f114aa2 Fix workflow_run events not creating commit statuses
Workflows triggered by `workflow_run` events did not produce commit
statuses because `getCommitStatusEventNameAndCommitID` had no case for
`HookEventWorkflowRun`. The function returned empty strings, so
`CreateCommitStatusForRunJobs` silently skipped status creation.

Add a `workflow_run` case that walks up the parent run chain (up to 5
levels) to find the original triggering event's commit SHA and attaches
the status there. This makes chained `workflow_run` workflows visible
in the commit status popover alongside the root workflow.
2026-02-13 16:58:12 +01:00