Mislav Marohnić
cd5a0d69fb
:nail_polish: be clearer about the value passed to ResolveRemotesToRepos
...
`repo` will always be blank here, so replace the argument with a blank
literal instead.
2020-07-02 12:36:31 +02:00
Mislav Marohnić
db88ac4155
Declare -R, --repo flag on all issue and pr subcommands
2020-06-30 18:51:53 +02:00
Mislav Marohnić
15126a71c9
Merge remote-tracking branch 'origin' into remove-global-repo-flag-for-real-this-time
2020-06-30 17:39:45 +02:00
Mislav Marohnić
ab903bdfc0
Merge pull request #1155 from metalogical/FIX-detached-head
...
fix regression in support for detached HEAD state
2020-06-24 17:01:22 +02:00
Corey Johnson
6d70f31b66
Merge pull request #994 from AliabbasMerchant/fix-incorrect-docs
...
Fix incorrect docs in Issue&PR create
2020-06-23 09:38:08 -04:00
Corey Johnson
625b673b58
Ignore repo flag errors in determineBaseRepo
2020-06-22 15:30:22 -04:00
Corey Johnson
2761739c29
Correct package name
2020-06-22 15:19:33 -04:00
Corey Johnson
6a02ad3f1b
Add repoflag to pr commands
2020-06-22 15:09:21 -04:00
Corey Johnson
dd8cbccbd5
Add repo flag to issue commands
2020-06-22 14:26:41 -04:00
Corey Johnson
8a4872bab3
Remove global repo flag
2020-06-22 14:07:49 -04:00
HowJMay
2fc4c000b5
fix typo
2020-06-22 15:19:50 +08:00
Mislav Marohnić
caa9b20eaf
Merge pull request #1243 from AliabbasMerchant/fix1219
...
Fix pr create not using .github/pull_request_template.md
2020-06-18 17:12:06 +02:00
AliabbasMerchant
ae695e98ce
Fix pr create not using .github/pull_request_template.md
2020-06-18 09:00:56 +05:30
Mislav Marohnić
4662abb312
Merge remote-tracking branch 'origin' into fix-incorrect-docs
2020-06-16 17:08:10 +02:00
Mislav Marohnić
518f751f58
Merge remote-tracking branch 'origin' into mislav/help-flag
2020-06-16 16:54:47 +02:00
Mislav Marohnić
27cce8e3ca
Apply the no-args handler to issue/pr status commands
2020-06-16 16:50:34 +02:00
Mislav Marohnić
3fea249d70
💅 tweak issue/pr create examples
2020-06-16 16:43:05 +02:00
Mislav Marohnić
f64e5f16eb
Add special case for unsupported gh <command> help
2020-06-16 16:06:51 +02:00
Mislav Marohnić
311536433c
The ultimate --help & spelling suggester handler
...
- short command usage output now lists subcommands instead of flags for
parent commands
- mistyping a subcommand now results in a non-zero exit status
- requesting `--help` or `-h` for any command now prints help docs on
stdout and exits with 0
2020-06-16 15:41:46 +02:00
Mislav Marohnić
ce59deb7b3
Show inherited flags in help output
2020-06-16 13:58:31 +02:00
Mislav Marohnić
9c75cff94b
Show command usage output on invalid flags being passed
2020-06-16 13:58:01 +02:00
Mislav Marohnić
b838ac4014
Improve no args error handler and extend it to other commands
2020-06-15 21:01:32 +02:00
Mislav Marohnić
d583f8b5fa
Merge remote-tracking branch 'origin' into issue_list
2020-06-15 20:30:34 +02:00
Eddú Meléndez Gonzales
c70756d596
Improve message when draft pr is created ( #1202 )
...
Fixes #1199
Co-authored-by: Mislav Marohnić <mislav@github.com>
2020-06-15 15:27:30 +02:00
AliabbasMerchant
84f3d46338
Better example section in issue and pr create
2020-06-14 21:53:56 +05:30
Adam Stiles
ab2540652d
Direct users to https url for manual
2020-06-12 07:55:37 -07:00
ShubhankarKG
15ec2b748e
Refactor code
2020-06-12 12:00:01 +05:30
naman
fb7b01b40c
resolve PR review
2020-06-11 17:05:25 -07:00
Nate Smith
db74ea051e
Merge pull request #1165 from cli/api-repo-placeholders
...
api command: support `{owner}` and `{repo}` placeholders
2020-06-11 15:18:43 -05:00
Mislav Marohnić
d5c4e23ca5
Tweak last few Example sections
2020-06-11 20:36:08 +02:00
Mislav Marohnić
73ab5810ea
Merge remote-tracking branch 'origin' into doc-examples-tweaks
2020-06-11 20:32:47 +02:00
Mislav Marohnić
0dfc0f733f
Fix indentation of Example blocks
...
In HTML, `Example` blocks seem to be already injected in fenced Markdown
blocks `` ``` ``, so they don't need to be especially intented.
2020-06-11 20:31:37 +02:00
Mislav Marohnić
99fce24fc8
Fix FLAGS section showing up empty for config get/set
...
This is because `config get/set` both do have a flag, but it's hidden.
2020-06-11 18:50:18 +02:00
Mislav Marohnić
e6a0c3dc28
Fix EXAMPLES sections of various commands
...
- Code should be intented per Markdown syntax for a code block. This
matters when this documentation is rendered to HTML
- Fix some innaccurate usage examples
- Tweak wording, formatting in a few places
2020-06-11 18:47:57 +02:00
Corey Johnson
cde76930a1
Merge pull request #1157 from bvwells/limit
...
Validate pr and issue limit flag
2020-06-11 09:37:05 -07:00
Nate Smith
63d9611c0a
Merge pull request #1166 from cli/fix-gh-config-examples
...
Tweak gh config examples in help output
2020-06-11 10:25:01 -05:00
Nate Smith
e6721c595d
Merge pull request #1164 from AliabbasMerchant/fix-1159
...
Fix error when Milestone is empty during PR create
2020-06-11 10:20:04 -05:00
Mislav Marohnić
e7c934b05c
Tweak gh help config output
2020-06-11 16:44:27 +02:00
Mislav Marohnić
8e90c27c46
Use Cobra's Example field for config get/set examples
2020-06-11 16:44:08 +02:00
Mislav Marohnić
8ffbc24c65
Merge remote-tracking branch 'origin' into fix-gh-config-examples
2020-06-11 16:30:00 +02:00
Mislav Marohnić
acf0046718
api command: support {owner} and {repo} placeholders
...
When `{owner}` and `{repo}` strings are found in request path (for REST
requests) or `query` (for GraphQL), they are replaced with values from
the repository of the current working directory.
2020-06-11 15:00:29 +02:00
AliabbasMerchant
26987c1434
Fix error when Milestone is empty during PR create
2020-06-11 17:27:18 +05:30
micnncim
c6c366e8f5
Fix gh config examples in documentations
2020-06-11 19:53:09 +09:00
gedenata
cfaedd4c71
redundant type slice-string
2020-06-11 07:32:09 +08:00
Ben Wells
a89f45b1ed
Validate pr and issue limit flag
2020-06-10 21:42:38 +01:00
naman
3bb6983b35
fix regression in support for detached HEAD state
...
for gh pr status
2020-06-10 11:41:44 -07:00
Corey Johnson
2fb48e93ed
Inline method call
2020-06-10 09:59:40 -07:00
Corey Johnson
7d7a010739
Clear out usage func
2020-06-10 09:43:24 -07:00
Corey Johnson
4931892cc3
Apply changes that were lost in merge conflict
2020-06-10 09:30:35 -07:00
Corey Johnson
d140ae6f5b
Don't show hidden commands
2020-06-10 09:29:34 -07:00