Tomohiro Nishimura
a9d397be69
Add --generate-notes flag to gh release create command. ( #4467 )
2021-12-08 15:20:59 +04:00
rsteube
24c41b5e88
gist view: fix missing files shorthand
...
converted to `BoolVar`
2021-12-03 10:45:33 +01:00
Sam Coe
260716a9f8
Repace shurcool/graphql with cli/shurcool-graphql
2021-11-17 12:57:43 -08:00
Alan Donovan
f4491c7a80
Add FlagErrorf; encapsulate FlagError.error
2021-10-21 11:40:20 -04:00
Mislav Marohnić
2c86e671f3
Enable gh auth login for github.localhost
2021-10-18 20:01:18 +02:00
Mislav Marohnić
2ca18e0600
Warn about missing OAuth scopes when reporting HTTP 4xx errors
...
If a 4xx server response lists scopes in the X-Accepted-Oauth-Scopes
header that are not present in the X-Oauth-Scopes header, the final
error messaging on stderr will now include a hint for the user that they
might need to request the additional scope:
$ gh codespace list
error getting codespaces: HTTP 403: Must have admin rights to Repository. (https://api.github.com/user/codespaces?per_page=30 )
This API operation needs the "codespace" scope. To request it, run: gh auth refresh -h github.com -s codespace
2021-10-13 23:24:14 +02:00
Reto Hablützel
f6e9734f17
add more hints to docs
2021-09-25 08:38:26 +02:00
Mislav Marohnić
11fbb60ae7
Rename the module to "github.com/cli/cli/v2"
2021-08-25 12:41:30 +02:00
Heath Stewart
88af63d36f
Re-enable label colors for issue list ( #4106 )
...
* Re-enable label colors for issue list
* Drop parentheses wrapping issue labels
* Support ANSI escape codes in TablePrinter cells
* Switch to a Truncate implementation that correctly measures ANSI escape codes
* Only output RGB color if terminal has truecolor capabilities
* Enable `ENABLE_VIRTUAL_TERMINAL_PROCESSING` on Windows - fixes wrapping issues with full lines and allows truecolor rendering
Co-authored-by: Mislav Marohnić <mislav@github.com>
2021-08-23 19:55:12 +02:00
Jon Lorusso
22235c2f97
Update documentation for gist create command to reflect default of secret.
2021-06-21 11:25:49 -04:00
Mislav Marohnić
70a9621928
💅 cleanup in gist create
2021-05-07 14:15:27 +02:00
Gowtham Munukutla
cc94dc762d
shift gist validation to server rather than client
2021-05-07 14:12:00 +02:00
Mislav Marohnić
44ae7ae3cf
Merge pull request #3279 from cli/browser-refactor
...
Pass web browser to each individual command
2021-03-30 16:54:59 +02:00
Mislav Marohnić
b70b0402eb
Merge pull request #3200 from cli/table-widths
...
Ensure that table printer always uses all available width in the terminal
2021-03-30 16:54:13 +02:00
Sam
9ec1e21d4c
Default to GHES host if only GHES is authenticated ( #3286 )
2021-03-30 16:51:00 +02:00
Mislav Marohnić
111e8dbcf2
Pass web browser to each individual command
...
This removes sensitivity to the BROWSER environment variable in tests
and makes it easier to verify the URL that the browser was invoked with
without having to stub sub-processes.
2021-03-19 21:22:37 +01:00
Nate Smith
2ab073d599
Refactor use of glamour to allow style overrides ( #3243 )
...
* Refactor use of glamour to allow style overrides
* leave the things the way they were and just expose the ability to set overrides
2021-03-19 16:29:32 +00:00
Mislav Marohnić
ed15bebb84
Ensure that table printer fills the full width of the terminal
...
Sometimes, due to rounding errors, after calculating the width of each
column in a table, the sum of all columns would be shorter that the
total available width in the terminal. This reimplements the elastic
column resizing algorithm to ensure that all available space has been
filled.
As a bonus fix, columns that contain URLs are never truncated.
2021-03-11 19:04:57 +01:00
Nate Smith
2fbc037658
Merge pull request #3042 from g14a/bug/gist-binary-files
...
Remove functionality to add, view and edit binary files in gists
2021-03-04 13:01:54 -06:00
Mislav Marohnić
e16c3124dd
Disallow binary files with gist edit -a
2021-03-02 14:58:16 +01:00
Mislav Marohnić
066ba54549
Sort gist files case-insensitively
2021-03-02 14:53:19 +01:00
Mislav Marohnić
77d9051d0e
Simplify looking up binary types in gist
2021-03-02 14:53:10 +01:00
Gowtham Munukutla
973fbb0925
Disallow operating on binary files in gist
2021-03-02 14:52:44 +01:00
Mislav Marohnić
dd34cae112
Merge remote-tracking branch 'origin' into cancel-error-status
2021-03-02 13:52:07 +01:00
Mislav Marohnić
2ebdde1ddd
Exit with status code "2" on user cancellation errors
...
This also stops printing "interrupt" after Ctrl-C is pressed.
2021-03-02 13:48:44 +01:00
vilmibm
39718cd5ca
just hide empty descriptions
2021-03-01 16:07:04 -06:00
vilmibm
00e8c07021
Merge remote-tracking branch 'origin/trunk' into interactive-gist-view
2021-03-01 16:05:26 -06:00
vilmibm
e100b15acb
some text tweaks
2021-03-01 16:03:48 -06:00
Mislav Marohnić
8f96e406ac
Improve error handling and avoid writing confirmation to stdout
...
Right now the `gist edit` command doesn't write anything to stdout, so
let's keep it that way until we want to intentionally provide some
feedback in the terminal.
2021-02-27 12:23:18 +01:00
Mislav Marohnić
406d7eee45
💅 cleanup gist edit -a feature
2021-02-27 12:07:35 +01:00
Gowtham Munukutla
7fd0634a24
rebase with trunk
2021-02-25 14:47:26 +05:30
boonhong
0833bdc6b4
Merge branch 'trunk' of github.com:cli/cli into interactive-gist-view
2021-02-24 23:32:23 +08:00
boonhong
5403a37601
Add interactive select in gist view
2021-02-24 18:38:05 +08:00
Gowtham Munukutla
61eb7eeeab
Add msg in gist delete
2021-02-24 15:53:07 +05:30
Gowtham Munukutla
56ead91702
Add helper function to validate exact args in cmdutil
2021-02-24 15:49:40 +05:30
Gowtham Munukutla
3e5d5a23c0
add fixturefile const in tests
2021-02-24 10:22:56 +05:30
Gowtham Munukutla
d4e14beb57
remove unwanted tests and unwanted functionality
2021-02-24 10:14:31 +05:30
Gowtham Munukutla
a6fa14866b
updating tests WIP
2021-02-24 09:44:11 +05:30
Gowtham Munukutla
cbf8a0d964
Accept only one argument when deleting a gist
2021-02-23 20:12:26 +05:30
Gowtham Munukutla
faffc4de95
Add go fmt to pass ci/cd
2021-02-19 12:05:20 +05:30
Gowtham Munukutla
4ed10140ab
Resolved PR review comments and test cases
2021-02-19 12:02:17 +05:30
Gowtham Munukutla
882bd1adb1
add go lint to pass checks
2021-02-18 22:39:56 +05:30
Gowtham Munukutla
a4a194011f
gofmt
2021-02-18 19:18:49 +05:30
Gowtham Munukutla
9a4fd0d706
Remove unwanted prompt for user. Unwanted test as well
2021-02-18 19:17:42 +05:30
Gowtham Munukutla
bff8b3007a
Add test cases and improve errors with color schemes
2021-02-18 18:45:43 +05:30
Gowtham Munukutla
2983887458
Add files by absolute path to gist
2021-02-17 20:39:43 +05:30
Gowtham Munukutla
037343c5c2
Add existing files in the current wd to gist
2021-02-17 19:20:43 +05:30
Gowtham Munukutla
05e45e3863
Feature of adding new files to an existing Github gist
2021-02-17 11:27:57 +05:30
Mislav Marohnić
622317ee89
Tweak gist docs
2021-02-03 22:39:58 +01:00
Ruslan Gilyazetdinov
907524f459
add --files to list filenames in gist ( #2885 )
2021-02-03 22:39:58 +01:00