1.5 KiB
1.5 KiB
Pipeline OpenAPI Shortcuts
Submitter: Wang Yue
This change adds a dedicated pipeline shortcut group for GitLink Pipeline OpenAPI coverage.
Commands
pipeline +listpipeline +runspipeline +runpipeline +viewpipeline +deletepipeline +save-yamlpipeline +enablepipeline +disablepipeline +logspipeline +results
API Mapping
| Shortcut | Method | API path |
|---|---|---|
pipeline +list |
GET | /api/pm/pipelines.json |
pipeline +runs |
GET | /api/v1/{owner}/{repo}/actions/runs.json |
pipeline +run |
POST | /api/v1/{owner}/{repo}/actions/runs.json |
pipeline +view |
GET | /api/v1/{owner}/{repo}/pipelines/{id}.json |
pipeline +delete |
DELETE | /api/v1/{owner}/{repo}/pipelines/{id}.json |
pipeline +save-yaml |
POST | /api/v1/{owner}/{repo}/pipelines/save_yaml |
pipeline +enable |
POST | /api/v1/{owner}/{repo}/actions/enable.json |
pipeline +disable |
POST | /api/v1/{owner}/{repo}/actions/disable.json |
pipeline +logs |
POST | /api/v1/{owner}/{repo}/actions/runs/{run_id}/jobs/0 |
pipeline +results |
GET | /api/v1/{owner}/{repo}/pipelines/run_results.json |
Verification
- Unit tests cover request methods, paths, query parameters, request bodies, dry-run behavior, and invalid ID validation.
- Help documentation is available through
gitlink-cli pipeline --helpand command-specific help. - Write and delete commands support
--dry-runto preview requests before changing pipeline state.