A clear and concise description of what the bug is. Include version by typing gh --version.
I have this code that makes a table of repo's issues:
start_timestamp=$(gdate --date="$(gdate +'%Y-%m-%d') - 1 month" +'%Y-%m-%d')echo"Looking for issues closed since $start_timestamp -> closed.log"
gh issue list --search "is:closed closed:>$start_timestamp" --json 'title,url' \
--template '{{range .}}{{tablerow .title .url}}{{end}}'> closed.log
(Here gdate is the GNU implementation of date from the coreutils package)
Just a month ago it used to make a table with full titles and URLs. But now gh truncates the strings, making the output basically useless:
Docs: table of content and language ... https://github.com/tarantool/taranto...
Make separate customer zone pages fo... https://github.com/tarantool/taranto...
I haven't found a way to revert to the previous behaviour in the following docs:
Note that tablerow will still truncate table columns to make the whole table fit in the current terminal viewport. The bug is that the terminal width was incorrectly measured when stdout was redirected. But, with tablerow you are never safe from truncation. If you don't want truncation, you might want to avoid using tablerow and just output values directly.
The workaround to avoid truncation is to force a really wide terminal with GH_FORCE_TTY=10000
NickVolynkin commentedOct 27, 2022
•
edited
Describe the bug
A clear and concise description of what the bug is. Include version by typing
gh --version.I have this code that makes a table of repo's issues:
(Here
gdateis the GNU implementation ofdatefrom thecoreutilspackage)Just a month ago it used to make a table with full titles and URLs. But now
ghtruncates the strings, making the output basically useless:I haven't found a way to revert to the previous behaviour in the following docs:
gh version:
Steps to reproduce the behavior
closed.logExpected vs actual behavior
Same but in 3. you get full titles and URLs.
Logs
(no extra logs needed)
The text was updated successfully, but these errors were encountered: