Nate Smith
fdf940eeba
Merge pull request #530 from doi-t/issue-467
...
Ability to differentiate pull requests by their state
2020-03-02 16:12:55 -06:00
Billy Griffin
8340591ad3
Number is more readable
2020-02-27 11:23:37 -07:00
Billy Griffin
b18ea98436
Improve error message for issue URL with no args
2020-02-27 11:22:39 -07:00
Mislav Marohnić
adf2177a24
Merge pull request #474 from politas/fix/StripHash
...
Handle properly passed #<num> as equivalent to <num> for PRs and Issues
2020-02-27 12:15:00 +01:00
Mislav Marohnić
f5b0354ae3
Fix tests
2020-02-27 12:11:49 +01:00
Myk
038e5e5342
Accept #<num> syntax as issue/PR number
2020-02-27 12:11:49 +01:00
Mislav Marohnić
55b66feb42
Merge pull request #542 from Dasio/slice-initialization
...
Slice initialization
2020-02-26 20:02:06 +01:00
Toshiya Doi
5f152a349d
Print merged and closed PRs of the current branch along with an opening PR
2020-02-27 00:07:48 +09:00
Dasio
19cc79cac8
Removed explicit capacity in slice initialization
2020-02-26 15:44:52 +01:00
Toshiya Doi
8b31b283f5
Merge branch 'master' into issue-467
2020-02-26 15:37:32 +09:00
Nate Smith
39bdeee13b
Merge pull request #550 from rista404/draft-pr-212
...
Use gray color for PR number if PR is a draft
2020-02-25 16:51:59 -06:00
rista404
2a42f61d8d
Use gray color for PR number if PR is a draft
2020-02-25 18:47:44 +01:00
Mislav Marohnić
d25ec726ad
Add repo clone <repo> command
2020-02-25 16:47:42 +01:00
Toshiya Doi
957adc1cff
Change a PR number's color based on its PR status
2020-02-25 14:33:39 +09:00
Dasio
9289ab99f2
Use var syntax when empty struct is initialized
2020-02-24 22:33:22 +01:00
Dasio
8aa46c236e
Init slice with provided capacity if it's known in advance
2020-02-24 22:16:41 +01:00
Nate Smith
7a222d8f93
Merge pull request #337 from spenrose/repo-view
...
Add repo view command
2020-02-24 13:28:05 -06:00
vilmibm
1bf8beb96d
fix baseRepo type
2020-02-24 13:22:43 -06:00
vilmibm
cb20e9939f
Merge remote-tracking branch 'origin/master' into repo-view
2020-02-24 13:19:59 -06:00
Mislav Marohnić
980a5a39eb
Merge pull request #539 from cli/push-output
...
Show `git push` output during `pr create`
2020-02-24 20:19:11 +01:00
Mislav Marohnić
c10f2ff945
Communicate to the user that we're waiting before retrying git push
...
When the user has just created a fork, it might not yet be ready for
writing. This ensures that the wait period between retries is
communicated to the user on stderr.
2020-02-24 19:36:54 +01:00
Toshiya Doi
28460e4b7e
Change a PR state color
2020-02-25 01:26:07 +09:00
Mislav Marohnić
6eba80a8b4
Merge remote-tracking branch 'origin/master' into repo-view
2020-02-24 17:20:02 +01:00
Mislav Marohnić
e87467d21f
Allow repo view OWNER/REPO format for owners starting with "http"
2020-02-24 17:17:14 +01:00
Mislav Marohnić
398a5defb8
Use displayURL helper for consistency
2020-02-24 17:17:00 +01:00
Mislav Marohnić
20fc0dfcb7
Avoid API requests in repo view when repo argument is given
2020-02-24 17:14:46 +01:00
Mislav Marohnić
f6eb710462
Fix test expectation on Windows
...
On Windows, `&` characters in URLs need to be escaped with `^`, but that
messes up the test expectation for other platforms, so this normalizes it.
2020-02-24 13:53:37 +01:00
Mislav Marohnić
38b58a4914
Respect explicit title & body with issue create --web
2020-02-24 13:41:46 +01:00
Mislav Marohnić
ac94ae5872
Return interface from determineBaseRepo(), not pointer to interface
...
It's sufficient to return a value of type `ghrepo.Interface` instead of
a pointer to an interface. This avoids having to use `*` whenever we are
passing the result of `determineBaseRepo()` into another function that
accepts a `ghrepo.Interface`.
2020-02-24 13:40:58 +01:00
Toshiya Doi
b965683594
Append a pull request status for the current branch
2020-02-22 16:56:30 +09:00
Mislav Marohnić
9c00ac0224
Tweak verbose HTTP logging
...
- log headers only in DEBUG=api mode
- enable color output on stderr
- hide little-useful TLS debbuging info
- ensure all request headers are logged
2020-02-21 12:57:00 +01:00
Mislav Marohnić
b5d0b7c640
Merge pull request #523 from cli/title-body-web
...
Respect title & body from arguments to `pr create -w`
2020-02-20 22:53:40 +01:00
Mislav Marohnić
1a82e39ba9
Respect title & body from arguments to pr create -w
2020-02-20 22:48:04 +01:00
Mislav Marohnić
4c3e498021
Fix column alignment and truncation for Eastern Asian languages
...
- Ensure that text is never truncated mid-character, which would result
in garbled text
- Ensure that columns in `issue/pr list` output align properly
2020-02-20 18:52:17 +01:00
Mislav Marohnić
13dbfa44c2
go fmt
2020-02-20 13:55:55 +01:00
Mislav Marohnić
861b231344
Have --state=closed include merged PRs
...
Since we currently offer no way of querying PRs by combining multiple
states with an OR, the best way to handle the `closed` state is to match
what the web UI is doing; that is to include merged PRs.
2020-02-20 13:53:44 +01:00
Nate Smith
57eb1d1d45
Merge pull request #505 from cli/completion-error-handling
...
Make sure to handle errors when generating completions
2020-02-19 08:52:34 -06:00
Mislav Marohnić
6424e8c92a
Make sure to handle errors when generating completions
2020-02-19 15:39:33 +01:00
Mislav Marohnić
f6c9e7b4af
Merge pull request #497 from ShahzadUmair/fix-template
...
Explicitly replace empty body with default template
2020-02-19 15:04:53 +01:00
Scott Penrose
7c76fb645a
Add repo view command
...
```
$ gh repo
Work with GitHub repositories.
A repository can be supplied as an argument in any of the following formats:
- by owner/repo, e.g. "cli/cli"
- by URL, e.g. "https://github.com/cli/cli "
Usage:
gh repo [command]
Available Commands:
view View a repository in the browser
```
2020-02-18 21:25:31 -05:00
Nate Smith
f6856d9783
Merge pull request #483 from cli/pr-create-web-base
...
Respect overriden base branch in `pr create --web`
2020-02-18 16:11:39 -06:00
UmairShahzad
12216fee8c
reset to template if body is empty
2020-02-19 02:16:12 +05:00
Nate Smith
c65ac4ae9d
Merge branch 'master' into glamour-markdown
2020-02-18 14:23:49 -06:00
Mislav Marohnić
408b565fd9
Allow setting version via ldflags again
2020-02-18 13:47:57 +01:00
Colin Arnott
de6e99aa75
command: default to toolchain version
...
Since the Go toolchain is able to extract the module version at build
time, we should use that as a default instead of DEV. This means
customers installing via go-get will get the correct version.
Unfortunately, the toolchain does not store when the build occurs, so
BuildTime now defaults to the empty string. It is still set if build
officially, just not for go-get.
2020-02-18 07:55:54 +00:00
Mislav Marohnić
96ba2d27d8
Respect overriden base branch in pr create --web
2020-02-17 14:14:37 +01:00
Dmitry Sharshakov
b67bb55383
Correct typoes
2020-02-16 17:28:03 +03:00
Nate Smith
96dc4376a1
Merge pull request #429 from cli/co-drawing-board
...
revert pr checkout branch prefixing
2020-02-13 17:37:42 -06:00
Nate Smith
2e7feddcc4
Merge pull request #362 from cli/cross-repo-create
...
Cross repo pr create
2020-02-13 17:23:47 -06:00
vilmibm
c5a511a2d1
Revert "prefix branch names for local pr checkout"
...
This reverts commit 5b8d7c1841 .
2020-02-13 17:16:53 -06:00