cli/pkg/cmd/run
Babak K. Shandiz 284880c21e
Fix StatusJSONResponse usage (#10810)
* Fix `StatusJSONResponse` usage

Signed-off-by: Babak K. Shandiz <babakks@github.com>

* Replace `assert` with `require`

Signed-off-by: Babak K. Shandiz <babakks@github.com>

* Improve assertion against errors

Signed-off-by: Babak K. Shandiz <babakks@github.com>

* Add `JSONErrorResponse` helper func

Signed-off-by: Babak K. Shandiz <babakks@github.com>

* Use `httpmock.JSONErrorResponse`

Signed-off-by: Babak K. Shandiz <babakks@github.com>

* Replace `StatusJSONResponse` to `JSONErrorResponse` for better readibility

Signed-off-by: Babak K. Shandiz <babakks@github.com>

* Fix improper use of `StatsJSONResponse`

Signed-off-by: Babak K. Shandiz <babakks@github.com>

---------

Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-05-01 20:22:43 +01:00
..
cancel test(gh run): assert branch names are enclosed in square brackets 2024-12-09 12:45:36 -05:00
delete test(gh run): assert branch names are enclosed in square brackets 2024-12-09 12:45:36 -05:00
download Use safepaths for run download 2024-12-04 22:12:58 +01:00
list Remove out of scope changes, update list commands 2025-03-31 11:58:30 -04:00
rerun Remove trailing whitespace 2025-02-13 11:06:27 +05:00
shared Merge pull request #10740 from cli/babakks/fallback-to-job-run-logs 2025-04-11 11:39:07 +02:00
view Merge pull request #10769 from cli/babakks/fix-job-log-resolution 2025-04-11 16:16:39 +02:00
watch Fix StatusJSONResponse usage (#10810) 2025-05-01 20:22:43 +01:00
run.go feat(run): add new delete command 2023-03-30 17:02:04 +02:00