Mislav Marohnić
86e49b7304
Support PR commit URLs in `cherry-pick`
...
E.g. `/OWNER/REPO/pull/123/commits/SHA`
Fixes #1249
2016-09-12 03:26:51 +02:00
Mislav Marohnić
345ffe727a
hub 2.3.0-pre6
2016-09-11 20:45:49 +02:00
Mislav Marohnić
83db19ad92
Fix Windows compilation issue
...
Fixes weird failure that happens only on Windows:
cannot use syscall.Stdin (type syscall.Handle) as type int in
argument to terminal.GetState
I would guess `syscall.Stdin` is of different type on Windows and that
this might be a Go bug.
2016-09-11 20:44:04 +02:00
Mislav Marohnić
b9cc6ee922
hub 2.3.0-pre5
2016-09-11 20:04:21 +02:00
Mislav Marohnić
70d7bb66d5
Fix 2FA prompt alignment in the terminal
...
After the last howeyc/gopass update, hitting Enter after password input
makes the next printed line appear indented to the position of the
password prompt. I'm not sure what causes this, but as a workaround,
skip the howeyc/gopass dependency altogether and interface directly with
crypto/ssh/terminal.
Fixes #1262
See https://groups.google.com/forum/#!topic/golang-nuts/kTVAbtee9UA
2016-09-11 19:53:57 +02:00
Mislav Marohnić
3b20822cee
Merge pull request #1264 from github/copy-to-clipboard
...
Enable copy to clipboard functionality for commands that print URLs
2016-09-11 07:29:02 -09:00
Mislav Marohnić
f7c1105df3
Copy to clipboard for `create`, `issue`, `pull-request`, `release`
...
Also add `--browse` functionality to `create` and `release` for parity
with `issue` and `pull-request`.
2016-09-11 18:21:23 +02:00
Mislav Marohnić
6fdc4c1a88
Change `hub create` to output the URL of the new repository
2016-09-11 04:42:24 +02:00
Mislav Marohnić
58ad61db27
Use a shared helper function to print or browse URLs
2016-09-11 04:38:13 +02:00
Mislav Marohnić
8d5a3e9103
Allow `args.Before/After` in combination with `NoForward`
2016-09-11 04:32:26 +02:00
Mislav Marohnić
3255fce35f
Rename the `--commitish` shorthand from `-c` to `-t`
...
This is to free up `-c` for `--copy`.
2016-09-11 03:13:23 +02:00
Mislav Marohnić
ea1424c77f
Merge branch 'windows-echo'
2016-09-11 00:03:26 +02:00
Mislav Marohnić
0c4689c673
Fix printing content on Windows after successful run
...
The old `args.After("echo", ...)` approach won't cut it on Windows since
there is no `echo` executable. Thus, nothing was printed on Windows.
Instead, expand Args type with extra functionality that allows Go
callbacks after all commands in the chain have been run.
Also, the new `args.NoForward()` is now preferred to `os.Exit()` since
it's more descriptive and allows `defer` in the calling function.
2016-09-10 23:49:58 +02:00
Mislav Marohnić
f507de0596
Show error to stderr if shelling out failed
...
If shelling out to nonexistent command, such as `echo` on Windows, print
the error on stderr instead of failing silently. This is also helpful
when hub tries to forward a command to `git`, but git is not installed.
2016-09-10 23:08:48 +02:00
Mislav Marohnić
b8c6e06645
Fix Windows installer for OS usernames with spaces
...
The Windows installer appends the location of `hub.exe` to user's PATH,
but that would break if the OS username has spaces.
2016-09-10 18:42:58 +02:00
Mislav Marohnić
cbc7ecb81a
hub 2.3.0-pre4
2016-09-09 01:39:23 +02:00
Mislav Marohnić
910dfdcb50
Negate `log.showSignature` in commits preview for `pull-request`
...
Fixes #1254
2016-09-09 01:22:19 +02:00
Mislav Marohnić
9750615433
Fix inferred `pull-request` head for usernames with capital letters
...
Fixes #1256
2016-09-09 00:32:08 +02:00
Mislav Marohnić
3ab56f59b5
Fix assigning labels/assignees without the other
...
The GitHub API doesn't seem to like receiving `"assignees": null`.
Fixes #1240
2016-09-08 23:27:32 +02:00
Mislav Marohnić
328df93ffe
Reuse common regexps in `cherry-pick`
2016-09-08 18:22:25 +02:00
Mislav Marohnić
660602b741
Unbreak normal `git fetch` command with URL and refspec
...
Fixes #1243
2016-09-08 18:22:25 +02:00
Mislav Marohnić
3a69a3ba78
Avoid crashing in `pull-request` error processing
...
When `api.PostJSON()` returns an error because of invalid JSON or a
network error, `res` variable will be nil. Avoid reading from nil `res`.
Fixes #1253 , fixes #1251 , fixes #1248 , fixes #1244
2016-09-08 18:22:25 +02:00
Mislav Marohnić
7a917bac90
hub 2.3.0-pre3
2016-08-21 18:12:27 +02:00
Mislav Marohnić
d5c8337f1f
Fix `release` from detached HEAD
...
Don't try to default `target_commitish` to the currently checked out
branch. Instead, keep the value blank unless explicitly provided. It
will default to the main branch on the server.
2016-08-21 18:10:31 +02:00
Mislav Marohnić
5b5dc6ee13
hub 2.3.0-pre2
2016-08-21 15:58:58 +02:00
Mislav Marohnić
d1cb6d7d12
Simplify Travis config and fix release process
2016-08-21 15:57:31 +02:00
Mislav Marohnić
4151f88470
hub 2.3.0-pre1
2016-08-21 14:37:11 +02:00
Mislav Marohnić
92abceabcf
Merge branch 'man-release'
2016-08-21 14:36:38 +02:00
Mislav Marohnić
be1167c722
Clean up display of available `--format` flags
2016-08-21 14:20:10 +02:00
Mislav Marohnić
f9692485f0
Advertise hub-issue(1) and hub-release(1) in man pages
2016-08-21 14:20:10 +02:00
Mislav Marohnić
b2d567df54
Move man pages to `share/man/man1/`
2016-08-21 14:20:10 +02:00
Mislav Marohnić
e74b25ae30
Merge branch 'issue-filters'
2016-08-21 13:25:15 +02:00
Mislav Marohnić
ca10058884
Cleanup in cukes
2016-08-21 13:23:26 +02:00
Mislav Marohnić
b315f6c849
Parse `YYYY-MM-DD` date as start of day in local timezone
2016-08-21 13:19:27 +02:00
Mislav Marohnić
4fd8abc8b7
Merge remote-tracking branch 'origin/master' into issue-filters
2016-08-21 12:59:07 +02:00
Mislav Marohnić
9da3d1773a
Merge branch 'edit-message'
...
Fixes #446 , fixes #937
2016-08-21 12:41:56 +02:00
Mislav Marohnić
860c910419
Unify `-F <filename> -e` functionality between commands
2016-08-21 12:40:16 +02:00
Mislav Marohnić
b5e6387111
Merge remote-tracking branch 'origin/master' into edit-message
2016-08-21 11:33:39 +02:00
Mislav Marohnić
d987f40f8d
Merge branch 'pull-request-templates'
...
Closes #1145 , fixes #1118
2016-08-21 11:23:26 +02:00
Mislav Marohnić
5d6090207f
Tweak whitespace in issue/PR template handling
2016-08-21 11:22:57 +02:00
Mislav Marohnić
d5cd91f672
Merge remote-tracking branch 'origin/master' into pull-request-templates
2016-08-21 09:14:21 +02:00
Mislav Marohnić
23a4e241dd
Merge branch 'reimplement-checkout'
...
Fixes #1069 , fixes #1206 , fixes #1133 , fixes #1236
2016-08-21 00:08:33 +02:00
Mislav Marohnić
58d332d500
Improve `checkout` in same-repo scenario
...
In case when the PR's head and base repositories are the same, check out
the new branch in a way that sets up push workflow to the same branch.
git fetch origin +refs/heads/fixes:refs/remotes/origin/fixes
git checkout -b fixes --track origin/fixes
2016-08-21 00:00:13 +02:00
Mislav Marohnić
a1f79d8876
Improve finding git remote to fetch from in new `checkout`
...
The remote needs to match the base project from the pull request.
2016-08-20 22:54:32 +02:00
Mislav Marohnić
2157ad1d6e
Reimplement `github.PullRequest()` using `simpleApi`
2016-08-20 22:54:32 +02:00
Mislav Marohnić
33bd0d04f7
Merge branch 'update-gopass'
2016-08-20 21:18:33 +02:00
Pascal Corpet
99a0d87819
label => labels, time => date, simpler tests
2016-08-19 21:04:40 +02:00
Pascal Corpet
f897f7d55d
typos
2016-08-19 16:49:01 +02:00
Pascal Corpet
f03978c3e8
Display only issues updated at or after a certain time.
2016-08-19 16:49:01 +02:00
Pascal Corpet
5ddce90357
Display only issues with certain labels.
2016-08-19 16:49:01 +02:00