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
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
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
Corey Johnson
951e6d8d70
Add basic lookup functions
2020-05-26 13:18:53 -07:00
Amanda Pinsker
93dab323fa
Fix typo
2020-05-26 09:50:03 -07:00
Corey Johnson
3122696140
Merge pull request #982 from cli/remote-delete
...
Remote delete
2020-05-26 09:10:12 -07:00
Corey Johnson
be5fc07928
Merge pull request #899 from cli/merge-interactive-merge
...
Interactive merge
2020-05-26 08:33:47 -07:00
Corey Johnson
b27df3410a
Don't delete remote or local branches for forks
2020-05-26 08:07:18 -07:00
Corey Johnson
9a290d7f43
Change interactive merge language
2020-05-22 15:30:05 -07:00
Corey Johnson
9113092f5c
Delete via api
2020-05-22 15:19:39 -07:00
Corey Johnson
ff97fc138d
Still delete remote branch if repo flag is used
2020-05-22 15:12:48 -07:00
Corey Johnson
e643765027
Merge remote-tracking branch 'origin/merge-interactive-merge' into remote-delete
2020-05-22 15:09:29 -07:00
Corey Johnson
858cd705ab
Update name
2020-05-22 15:07:39 -07:00
Corey Johnson
b2c1b12bee
Don't delete branch if the repo flag is used
2020-05-22 14:39:53 -07:00
Corey Johnson
41e67aa3e7
Fix typo
2020-05-22 10:04:02 -07:00
Mislav Marohnić
1f3725c94d
Use @me to avoid having to look up current user in pr status
2020-05-22 15:58:57 +02:00
Corey Johnson
80bdd1e071
print error
2020-05-20 14:36:09 -07:00
Corey Johnson
904c541d2d
Only delete local branch if it exists
2020-05-20 14:19:44 -07:00
Corey Johnson
a303dabc5d
Add remote deletion
2020-05-20 13:47:29 -07:00
Corey Johnson
46a1e3cd53
Remove convertRepoInterfaceToRepository
2020-05-20 11:19:31 -07:00
Corey Johnson
5d99c56456
combine conditionals
2020-05-20 09:21:59 -07:00
Corey Johnson
b4783dd192
don't always switch to the default branch
2020-05-20 09:00:39 -07:00