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
a7a90b3a4b
Move gist URL tests to its own file
2020-09-21 21:35:07 -03:00
Cristian Dominguez
55a8f3d8ca
Make gh gist view and edit commands reuse logic for id extraction
2020-09-21 21:28:04 -03:00
Cristian Dominguez
d685d666b2
Set gist ID by default on all tests
2020-09-21 12:11:08 -03:00
Cristian Dominguez
ef9b75e1f6
Add tests for gist URL check
2020-09-19 18:50:07 -03:00
Cristian Dominguez
2af136cc78
Return error if it's an invalid URL
2020-09-19 18:48:00 -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
yuuji.yaginuma
4f3d0e5f7b
Fix short description of gist
...
The `gist` command allows doing other operations than
`create`(like `edit`, `view`, etc). So I think that `manage`
is more appropriate to the description.
2020-09-18 14:21:02 +09:00
Cristian Dominguez
0b8c964a41
Fix gist ID extraction from url
2020-09-17 23:48:25 -03:00
vilmibm
7c986c0454
help typo
2020-09-16 11:23:14 -05:00
vilmibm
2b70e8266a
better time stub
2020-09-16 10:57:20 -05: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
ada2c56606
test gist view
2020-09-15 16:05:30 -05:00
vilmibm
4a467864d5
linter appeasement
2020-09-15 15:22:28 -05:00
vilmibm
f124b426fe
tweak gist view; support --filename
2020-09-15 14:56:13 -05:00
vilmibm
a61c897e4c
show filename if no description
2020-09-15 14:55:55 -05:00
vilmibm
ba5b639be4
finish list tests
2020-09-15 14:33:14 -05:00
vilmibm
9fd87faadc
wip tests
2020-09-15 14:15:44 -05:00
vilmibm
425f707c7d
fix tests
2020-09-15 13:36:32 -05:00
vilmibm
1887fc07c9
working on list tests, need to debug
2020-09-15 09:39:30 -05:00
vilmibm
b3266d9454
linter appeasement
2020-09-14 11:10:17 -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
2df6a6eb8c
s/private/secret/
2020-09-14 11:04:37 -05:00
vilmibm
415c2ac482
put gist in core commands
2020-09-14 10:43:34 -05:00
vilmibm
1edff18ad4
s/private/secret
2020-09-14 10:38:35 -05:00
vilmibm
269adab75a
improve list output
2020-09-14 10:33:29 -05:00
vilmibm
02d94d6f93
hmm
2020-09-14 10:33:29 -05:00
vilmibm
dc345a9f73
support --web for gist view
2020-09-14 10:33:29 -05:00
vilmibm
0d3056d9a7
gh gist edit
2020-09-14 10:33:29 -05:00
vilmibm
39b6ec8aec
share gist getting
2020-09-14 10:33:29 -05:00
vilmibm
b6502deb24
allow naming stdin gist files
2020-09-14 10:33:29 -05:00
vilmibm
b17124157c
start on gist view
2020-09-14 10:33:29 -05:00
vilmibm
f7c4a0cf3f
gh gist list
2020-09-14 10:33:29 -05:00
Mislav Marohnić
d8c5b7bfc0
Merge pull request #1517 from cli/select-host
...
Allow explicitly setting hostname for gh operations
2020-08-14 19:08:13 +02:00
Mislav Marohnić
85f0f3aad7
Enable repo create for GHE
2020-08-14 19:02:17 +02:00
Brandon Wilson
0d60798ca4
Gist Create - Output Filename ( #1498 )
2020-08-13 13:38:49 +02:00
Mislav Marohnić
c095a4bead
Allow explicitly specifying the hostname for gh operations
...
Accept the "HOST/OWNER/REPO" syntax or passing a full URL for both the
`--repo` flag and the GH_REPO environment variable and allow setting
GH_HOST environment variable to override just the hostname for
operations that assume "github.com" by default.
Examples:
$ gh repo clone example.org/owner/repo
$ GH_HOST=example.org gh repo clone repo
$ GH_HOST=example.org gh api user
$ GH_HOST=example.org gh gist create myfile.txt
$ gh issue list -R example.org/owner/repo
$ gh issue list -R https://example.org/owner/repo.git
$ GH_REPO=example.org/owner/repo gh issue list
2020-08-12 16:16:34 +02:00
Mislav Marohnić
34cc84c1e0
Provide consistent factory functions for top-level commands
2020-08-07 00:45:45 +02:00
Mislav Marohnić
0cbcf8a7fa
Merge remote-tracking branch 'origin' into ghe-api
2020-07-27 16:30:20 +02:00
Mislav Marohnić
288d01318b
Respect the hostname of current repository in queries
2020-07-23 22:31:08 +02:00
vilmibm
7b8d226e0f
remove redundant statement
2020-07-22 15:54:11 -05:00
vilmibm
a27c8a9c21
isolate repo view cmd
2020-07-22 15:54:11 -05:00
vilmibm
05419e46f0
put gist fixture file into gist package
2020-07-22 10:36:12 -05:00
Mislav Marohnić
16739c3044
Whoops, gist create stderr is not empty
2020-07-22 14:59:35 +02:00