Enhance the JSON output for rbt status and clean up some non-standard code.
Review Request #12177 — Created March 18, 2022 and submitted
This enhances the results of
rbt status --json
to show additional
information useful for automation.The results are now in a
review_requests
key, instead ofsummaries
,
which better identifies the type of results and allows for enhancement
in the future.The review request ID (
review_request_id
) and URL
(review_request_url
) are now provided, instead of just the ID.The results also now include
has_draft
,shipit_count
,
open_issue_count
,approved
, andapproval_failure
fields, which are
more useful for tools that may want to wrap this command.It also cleans up some of the code to use more standard terminology
("review request" instead of "request" or "review"), and to fix
documentation and spacing.
Tested
rbt status --json
and saw the revised fields.
Summary | ID |
---|---|
cd77998c21a5952f9143cbf6ecd5645c160f09d0 |
- Change Summary:
-
Renamed the
summaries
key toreview_requests
. - Description:
-
This enhances the results of
rbt status --json
to show both a reviewrequest ID ( review_request_id
) and URL (review_request_url
).+ The results are now in a
review_requests
key, instead ofsummaries
,+ which better identifies the type of results and allows for enhancement + in the future. + It also cleans up some of the code to use more standard terminology
("review request" instead of "request" or "review"), and to fix documentation and spacing. - Commits:
-
Summary ID cdf6aa4d1499ec96a17c8cf63540bec2c8252842 f17d2b38e8d0d7a69f8d039fd88f6b425f04ca34 - Diff:
-
Revision 2 (+66 -56)
Checks run (2 succeeded)
- Change Summary:
-
Added
approved
andapproval_failure
info to the JSON payload. - Description:
-
~ This enhances the results of
rbt status --json
to show both a review~ request ID ( review_request_id
) and URL (review_request_url
).~ This enhances the results of
rbt status --json
to show additional~ information useful for automation. The results are now in a
review_requests
key, instead ofsummaries
,which better identifies the type of results and allows for enhancement in the future. + The review request ID (
review_request_id
) and URL+ ( review_request_url
) are now provided, instead of just the ID.+ + The results also now include
has_draft
,shipit_count
,+ open_issue_count
,approved
, andapproval_failure
fields, which are+ more useful for tools that may want to wrap this command. + It also cleans up some of the code to use more standard terminology
("review request" instead of "request" or "review"), and to fix documentation and spacing. - Commits:
-
Summary ID f17d2b38e8d0d7a69f8d039fd88f6b425f04ca34 7c00910c7e5088ed77839a61d6568a8f0b381b02 - Diff:
-
Revision 3 (+80 -58)
Checks run (2 succeeded)
- Change Summary:
-
Failed to actually
git add
the new changes. - Commits:
-
Summary ID 7c00910c7e5088ed77839a61d6568a8f0b381b02 cd77998c21a5952f9143cbf6ecd5645c160f09d0 - Diff:
-
Revision 4 (+88 -58)