Commit 3d53ed9
committed
Add Actions API endpoints for workflow run and job management
This commit adds comprehensive REST API endpoints for GitHub Actions
workflow run and job operations, addressing requirements for:
- Workflow run operations: approve, cancel, rerun
- Job-specific operations: rerun individual jobs, download job logs
- Log streaming: both archive download and incremental streaming
- Enhanced job log access with proper error handling
Key changes:
- Add 6 new API endpoints in actions_run.go using consistent run ID approach
- Add comprehensive integration tests with proper error scenarios
- Update Swagger documentation for all new endpoints
- Maintain backward compatibility with existing API patterns
All endpoints follow established authentication and authorization patterns,
with proper error handling and response formatting.1 parent 198f37e commit 3d53ed9
File tree
5 files changed
+1447
-0
lines changed- routers/api/v1
- repo
- swagger
- templates/swagger
- tests/integration
5 files changed
+1447
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1289 | 1289 | | |
1290 | 1290 | | |
1291 | 1291 | | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
1292 | 1295 | | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
1293 | 1302 | | |
1294 | 1303 | | |
1295 | 1304 | | |
| |||
0 commit comments