Commit graph

41 commits

Author SHA1 Message Date
Tomohiro Nishimura
a9d397be69
Add --generate-notes flag to gh release create command. (#4467) 2021-12-08 15:20:59 +04:00
Mislav Marohnić
11fbb60ae7 Rename the module to "github.com/cli/cli/v2" 2021-08-25 12:41:30 +02:00
Sam
9ec1e21d4c
Default to GHES host if only GHES is authenticated (#3286) 2021-03-30 16:51:00 +02: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ć
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
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
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
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
Cristian Dominguez
55c717d3d3 Print friendly error when 'gh gist <command>' is missing required argument 2020-12-21 10:01:30 -03:00
Cristian Dominguez
c6b9e8454f Update gist edit tests 2020-09-30 12:35:22 -03:00
Cristian Dominguez
67c0a1a409 Check gist ownership before editing 2020-09-30 12:35:04 -03:00
Nate Smith
060ccd1eda
Merge pull request #1781 from cristiand391/fix-gist-id-extraction
Fix gist ID extraction from url
2020-09-22 12:04:04 -05:00
Cristian Dominguez
55a8f3d8ca Make gh gist view and edit commands reuse logic for id extraction 2020-09-21 21:28:04 -03:00
yuuji.yaginuma
943dcef478 Don't send a request when the contents haven't changed
By doing this, the command will finish faster if the user canceled
the editing.
2020-09-19 15:25:07 +09:00
vilmibm
0d45dd82f3 finish edit tests 2020-09-15 17:29:54 -05:00
vilmibm
15cf786c5a wip tests 2020-09-15 17:20:36 -05:00
vilmibm
a9ab2a98fc move Edit to opts for testing 2020-09-15 17:04:43 -05:00
vilmibm
62f54f0f02 start on edit tests 2020-09-15 16:18:26 -05:00
vilmibm
41382a558b better err 2020-09-14 11:09:50 -05:00
vilmibm
190d76abc5 linter appeasement 2020-09-14 11:08:32 -05:00
vilmibm
ecfbaaa31c linter appeasement 2020-09-14 11:07:33 -05:00
vilmibm
e7ab1b753e linter appeasement 2020-09-14 11:05:26 -05:00
vilmibm
0d3056d9a7 gh gist edit 2020-09-14 10:33:29 -05:00