Mislav Marohnić
a73584db72
Merge remote-tracking branch 'origin' into pr-commands-isolate
2020-08-04 15:01:30 +02:00
Mislav Marohnić
487dd06bf3
Isolate pr checkout command
2020-07-29 22:50:34 +02:00
Mislav Marohnić
da2292723b
Merge remote-tracking branch 'origin' into ghe-api
2020-07-29 16:49:16 +02:00
vilmibm
245c3c7425
move survey helper and test helpers to prompt pkg
2020-07-27 17:00:09 -05: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
086fb48d31
move displayURL
2020-07-23 11:25:31 -05:00
vilmibm
dc02366128
move generateRepoURL to ghrepo
2020-07-23 11:16:47 -05:00
vilmibm
fa928489b6
collapse open/draft state
2020-07-20 15:55:40 -05:00
vilmibm
f30f931695
fix tests
2020-07-20 15:55:37 -05:00
vilmibm
bffcbce716
restore nontty + web but suppress informational prints
2020-07-20 13:04:17 -05:00
vilmibm
168bd33bc9
pr command scriptability improvements
...
This commit improves behavior and error handling for pr commands when
run unattached to a tty.
- error if pr create and no -t/-f
- error if pr create and -w
- machine readable pr list
- machine readable pr view
- various cleanup of informational messages
2020-07-20 13:04:17 -05:00
Mislav Marohnić
0528145159
Allow filter values with spaces in issue/pr list --web
2020-07-16 15:21:50 +02:00
Mislav Marohnić
8626befd3f
Merge remote-tracking branch 'origin' into webInList
2020-07-16 14:51:34 +02:00
Mislav Marohnić
305cd290ee
Fix pr checkout <owner>:<branch> when it matches the default branch
...
First, consolidate the functionality between `pr merge` and `pr
checkout` that resolves the default branch name of the base repo. With
an added bonus, the new approach avoids an API request when one isn't
necessary.
Then, ensure that checking out 3rd-party PRs will result in local branch
name such as `<owner>/<branch>` when the head branch of the repository
matches the default branch of the base repository. We already have had
code in place to take care of this, but it only took effect in the `pr
checkout <number>`-style invocation.
2020-07-15 15:35:42 +02:00
AliabbasMerchant
4304b9e3eb
filterOptions struct for pr & issue list
2020-07-14 10:26:32 +05:30
AliabbasMerchant
73552ae75c
Merge 'trunk' in webInList
2020-07-14 08:53:39 +05:30
Sibi
2491e98c41
Title of the PR will be shown while closing, merging and re-opening & test cases updated
2020-07-08 12:22:38 +05:30
Sibi
125547fb7b
Show title while closing/reopening issue and meriging PR
2020-07-08 01:25:19 +05:30
Mislav Marohnić
e319aaa6ab
Tweak pr merge docs
2020-07-07 13:41:57 +02:00
Ravikanth C
6cbcdf2a74
Clarify how the branch can be retained after pr merge
2020-07-07 13:41:39 +02:00
Mislav Marohnić
6cc03d30ed
Merge pull request #1253 from cli/remove-global-repo-flag-for-real-this-time
...
Remove the global repo flag
2020-07-02 15:45:39 +02:00
Mislav Marohnić
1ca3d171e6
Tweak HTTP 422 handling when deleting branches
2020-06-30 19:21:39 +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
AliabbasMerchant
8f1aa9c864
Remove flag from PR list
2020-06-30 19:45:04 +05:30
AliabbasMerchant
77a610f071
Tests for --web flag in issue and pr list
2020-06-28 23:17:57 +05:30
AliabbasMerchant
c12243ce10
Support --web flag in issue and pr list
2020-06-28 19:50:42 +05:30
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
6a02ad3f1b
Add repoflag to pr commands
2020-06-22 15:09:21 -04:00
Mislav Marohnić
27cce8e3ca
Apply the no-args handler to issue/pr status commands
2020-06-16 16:50:34 +02:00
Mislav Marohnić
b838ac4014
Improve no args error handler and extend it to other commands
2020-06-15 21:01:32 +02:00
naman
fb7b01b40c
resolve PR review
2020-06-11 17:05:25 -07: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ć
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
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
30d1257096
Update help output
2020-06-09 13:19:00 -07:00
Corey Johnson
8979c0ce41
Update repo
2020-06-09 09:51:18 -07:00
Corey Johnson
a6948423f4
Update issue and pr help
2020-06-09 09:33:22 -07:00
Corey Johnson
0af61bee90
Set core root commands
2020-06-09 08:49:22 -07:00
Corey Johnson
4d182c4314
Better help command
2020-06-04 12:51:26 -07:00
Corey Johnson
ee2b38df68
Merge pull request #1020 from cli/pr-lookup-v2
...
Consistent PR lookup interface
2020-06-04 10:42:55 -07:00
Corey Johnson
4c75c8bccc
Reset base branch when URL is used
2020-06-03 14:34:13 -07:00
Corey Johnson
15770881bb
Use an array
2020-05-27 10:08:29 -07:00
Corey Johnson
e341d7b49f
Fix test
2020-05-27 08:38:30 -07:00
Mislav Marohnić
ab0e43c6c8
Merge remote-tracking branch 'origin/master' into auth-from-env
2020-05-27 11:44:19 +02:00
Corey Johnson
8d1f2745a4
wip
2020-05-26 16:35:35 -07:00