feat(ci): add flag with-job-details to output job data as table (#1226)
Description
add flag --with-job-details
to glab ci get
to get table with job details
Related Issues
Resolves Add command to get list of job ids (#1226 - closed)
How has this been tested?
add unit test and tested in cli
Screenshots (if appropriate):
❯ ./glab ci get -p 1085522881 --with-job-details
# Pipeline:
id: 1085522881
status: failed
source: merge_request_event
ref: 682
sha: 2d6e227eeff320d99323ed99973908e6514cad18
tag: false
yaml Errors:
user: AnWeber
created: 2023-11-26 21:27:14.094 +0000 UTC
started: 2023-11-26 21:27:15.197 +0000 UTC
updated: 2023-11-27 20:29:12.438 +0000 UTC
# Jobs:
id name status duration failure reason
5627646361 run_tests: [1.20] failed 241.509057 script_failure
5627646360 run_tests: [1.21] failed 219.310484 script_failure
5627646343 run_tests: [1.19] failed 225.755922 script_failure
5619464917 windows_installer success 45.747154
5619464916 release_test success 637.882331
5619464914 build_windows success 116.168089
5619464907 code_navigation success 96.034269
5619464906 lint success 115.636336
5619464905 lint_commit success 37.39943
5619464903 danger-review success 32.271659
5619464901 secret_detection success 11.976855
5619464898 semgrep-sast success 28.028815
5619464896 nodejs-scan-sast success 40.224836
5619464894 check_docs_markdown success 22.510403
5619464892 check_docs_update success 93.873539
Types of changes
-
Bug fix (non-breaking change which fixes an issue) -
New feature (non-breaking change which adds functionality) -
Breaking change (fix or feature that would cause existing functionality to change) -
Documentation -
Chore (Related to CI or Packaging to platforms) -
Test gap
Edited by Amy Qualls