You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implements comprehensive API endpoints for managing action workflow runs:
- POST /api/v1/repos/{owner}/{repo}/actions/runs/{run}/rerun
Rerun a workflow run and all its jobs
- POST /api/v1/repos/{owner}/{repo}/actions/runs/{run}/cancel
Cancel a workflow run and all running jobs
- POST /api/v1/repos/{owner}/{repo}/actions/runs/{run}/approve
Approve a workflow run requiring approval
- POST /api/v1/repos/{owner}/{repo}/actions/runs/{run}/jobs/{job_id}/rerun
Rerun a specific job and its dependent jobs
- GET /api/v1/repos/{owner}/{repo}/actions/runs/{run}/logs
Download workflow run logs as archive
- GET /api/v1/repos/{owner}/{repo}/actions/runs/{run}/jobs/{job_id}/logs
Download specific job logs
- POST /api/v1/repos/{owner}/{repo}/actions/runs/{run}/logs
Stream workflow run logs with cursor support for real-time viewing
Features:
- Leverages existing web UI business logic for consistency
- Proper permission checking (requires repo write access)
- Support for "latest" run parameter
- Dependency-aware job rerunning using existing service logic
- Comprehensive error handling and validation
- Real-time log streaming with cursor-based pagination
- Full integration test coverage
This enables CLI tools to provide equivalent functionality to GitHub's
'gh run' command for Gitea instances.
0 commit comments