Cannot Capture Output from: glab issue view --comments <id>
Checklist
-
I'm using the latest version of the extension (Run glab --version
)- Extension version: GitlabCLI v: 1.25.3
-
Operating System and version: Redhat 8.4
Summary
I'm trying to capture output from "glab issue view --comments " (in a script) to be used in to automatically generate release notes.
When I redirect the output to a file, using:
glab issue view --comments 123 &> issue.txt #or any other version of redirection
The output to the file is truncated after the 'Description' field & text.
Steps to reproduce
- glab auth login
- glab issue view --comments 123 # to see full output
- glab issue view --comments 123 > issue.txt (or: glcli issue view --comments 123 &> issue.txt)
- cat issue.txt
Also occurs with glab mr view
(I also tried setting GLAMOUR_STYLE=notty with same results)
What is the current bug behavior?
Captured output truncated after Description field.
What is the expected correct behavior?
Full command output captured.
Relevant logs and/or screenshots
Possible fixes
Raw output does not include comments.
https://gitlab.com/gitlab-org/cli/-/blob/main/commands/issuable/view/issuable_view.go#L226
Edited by Jay McCure