feat(actions): workflow_step webhook events + step API detail + step status fix #1

Open
will.anderson wants to merge 0 commits from feat/workflow-step-events into dev
Owner

Summary

  • Add workflow_step webhook event type — fires on every step state transition (queued → in_progress → completed), following the same pattern as workflow_job
  • Populate steps in the Jobs REST API response — GET /repos/:owner/:repo/actions/jobs/:id now returns per-step name/status/conclusion/timing
  • Fix step status bug: the inline loop was calling ToActionsStatus(job.Status) for every step, making every step reflect the whole job conclusion. Now calls ToActionWorkflowStep(step, i) which correctly uses step.Status

Test plan

  • CI build passes
  • GET /repos/.../actions/runs/:id/jobs returns steps array with individual step status/conclusion
  • Step webhook fires on state transitions in a test repo
## Summary - Add `workflow_step` webhook event type — fires on every step state transition (queued → in_progress → completed), following the same pattern as `workflow_job` - Populate `steps` in the Jobs REST API response — `GET /repos/:owner/:repo/actions/jobs/:id` now returns per-step name/status/conclusion/timing - Fix step status bug: the inline loop was calling `ToActionsStatus(job.Status)` for every step, making every step reflect the whole job conclusion. Now calls `ToActionWorkflowStep(step, i)` which correctly uses `step.Status` ## Test plan - [ ] CI build passes - [ ] `GET /repos/.../actions/runs/:id/jobs` returns `steps` array with individual step status/conclusion - [ ] Step webhook fires on state transitions in a test repo
Some required checks failed
Build & Push Gitea image / build-push (push) Failing after 1m50s
This branch is already included in the target branch. There is nothing to merge.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feat/workflow-step-events:feat/workflow-step-events
git checkout feat/workflow-step-events
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: neuron-technologies/gitea#1