William Martin
491e9e8e58
Ensure gist edit request body matches desired schema ( #7635 )
...
* Ensure gist edit request body matches desired schema
* Immediately transform gist to gistToUpdate in edit flow
* Remove maps package and change to NewFilename
2023-07-03 13:33:49 +09:00
Kousik Mitra
baba894997
Add option to remove file from gist ( #7560 )
2023-06-23 14:08:21 +02:00
Kousik Mitra
31209bcf89
Replace SurveyAskOne with Prompter
2023-06-05 22:48:21 +05:30
Kousik Mitra
9ccd098eb0
Add gist selector option to gist edit command
2023-06-05 22:07:04 +05:30
Sam Coe
c9a2d85793
Cleanup config.AuthToken and config.DefaultHost methods ( #7049 )
2023-02-28 00:24:45 +00:00
vilmibm
41385477c3
fix linting
2022-07-27 14:15:27 -05:00
vilmibm
d5334f4115
Revert "update linter checks"
...
This reverts commit 40ecb8c188 .
2022-07-27 13:30:41 -05:00
vilmibm
40ecb8c188
update linter checks
2022-07-26 16:06:52 -05:00
Sam Coe
cacff4ad6d
Use go-gh config package ( #5771 )
2022-06-23 11:50:04 +00:00
Håvard Anda Estensen
58cb773e09
Replace ioutil with io and os ( #5498 )
2022-04-26 13:07:44 +02:00
Sam Coe
f7710dedd2
Allow non-interactive gist file replacement ( #5408 )
2022-04-06 15:49:52 +02:00
nate smith
2f19fa792f
maint: clean up some errors
2022-01-24 17:34:21 -06:00
nate smith
de4e37ed75
Merge remote-tracking branch 'origin/trunk' into feat/gist-edit
2022-01-24 17:34:09 -06:00
Nate Smith
f950637b0b
Merge pull request #4738 from SteadBytes/gist-edit-description
...
Support editing gist description
2022-01-18 09:34:22 -06:00
Mislav Marohnić
e43cb2b880
Port more legacy stubs to the new ask stubber
2022-01-14 19:34:15 +01:00
Tomohiro Nishimura
a9d397be69
Add --generate-notes flag to gh release create command. ( #4467 )
2021-12-08 15:20:59 +04:00
Ben Steadman
f30e76aab8
Support editing gist description
...
Add a --desc flag to gh gist edit to support editing gist
descriptions. This flag can be used in combination with the other gist
editing flags to edit the description whilst also adding/editing files.
Signed-off-by: Ben Steadman <steadmanben1@gmail.com>
2021-11-16 20:18:53 +00:00
tdakkota
ab668e8419
gist edit: add way to edit files from different sources
...
This commit adds an optional parameter to set source for editing or adding files to gist.
If parameter is equal to "-" then stdin will be used.
2021-11-01 10:28:30 +03: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