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
90a3a539fa
Drop the tracking of the remote branch even if the remote repo exists.
2016-08-19 16:19:03 +02:00
Mislav Marohnić
36fa7fd902
Merge branch 'fix-assignees'
2016-08-19 15:42:26 +02:00
Mislav Marohnić
83bdc60dfa
Fix listing assignees in `hub issue`
2016-08-19 15:32:58 +02:00
Pascal Corpet
8ca5aa4260
Update hub checkout not to create any new remotes thus leaving less tracks behind.
2016-08-18 21:12:34 +02:00
Mislav Marohnić
a11d3b493a
Merge pull request #1144 from cdrage/remove-beta
...
Graduate from beta
2016-08-17 14:44:08 +02:00
Mislav Marohnić
19f9fa48da
Merge pull request #1099 from github/revamp-issues
...
Revamp `hub issue` commands
2016-08-16 18:54:05 +02:00
Mislav Marohnić
cb8c17ee31
Avoid using timezone abbreviations such as "PST" or "CEST"
...
Instead, specify timezone offsets explicitly so that different
environments interpret the time identically.
2016-08-16 18:15:00 +02:00
Mislav Marohnić
35e9dfed30
Fix test broken by verbose output change
2016-08-16 17:43:59 +02:00
Mislav Marohnić
28f872978a
Have `issue` command fetch all pages of API results
2016-08-16 17:29:41 +02:00
Mislav Marohnić
24ed64e477
Add relative date format to `issue` output
2016-08-16 17:29:41 +02:00
Mislav Marohnić
ba263fd8ce
Add created/updated dates to `issue` formatting options
2016-08-16 17:29:40 +02:00
Mislav Marohnić
15b86379bc
Refactor some `--format` placeholders
...
Renamed some existing placeholders and added new ones such as milestone
number/title, raw labels, comma-separated assignees, and number of comments.
2016-08-16 17:29:40 +02:00
Mislav Marohnić
eda119ec95
Fix comma-separated `fetch` with more than 2 names
2016-08-16 14:31:13 +02:00
Mislav Marohnić
01dad7641f
Fix vanilla `fetch` with non-GitHub remotes`
...
Fixes #1227
2016-08-16 14:30:42 +02:00
Mislav Marohnić
ac9ff97891
Add `issue create --browse` support to reflect `pull-request`
2016-08-15 15:34:03 +02:00
Mislav Marohnić
d2792baf73
Switch `pull-request` assignees and labels flags to `listFlag`
...
This allows accumulating values across repeated arguments.
2016-08-15 14:08:44 +02:00
Mislav Marohnić
4c02e6a817
Add assignees & milestone support to `issue create`
2016-08-15 14:08:44 +02:00
Mislav Marohnić
6f584d7da6
Remove unnecessary `IssueParams` struct
2016-08-15 12:47:39 +02:00
Mislav Marohnić
ddd5b167d5
It's Go 1.6 now
...
[ci skip]
2016-08-15 12:21:24 +02:00
Mislav Marohnić
df990c4815
Fix copy/pasta in `issue` flags
2016-08-15 12:20:26 +02:00
Mislav Marohnić
f355b1442e
Update gopass dependency for cross-platform compatibility
...
howeyc/gopass@e7699d3d9e
2016-08-14 23:01:51 +02:00
Mislav Marohnić
b20d1925b1
Merge pull request #1229 from arbourd/fix-create-pull-request
...
Fix CreatePullRequest to expect 201 over 200
2016-08-14 20:00:56 +02:00
Mislav Marohnić
efa3ce7cf1
Consolidate `github.PullRequest` structs
2016-08-14 19:54:31 +02:00
Mislav Marohnić
9f83b387ee
Merge remote-tracking branch 'origin/master' into revamp-issues
2016-08-14 19:50:28 +02:00
Dylan Arbour
ff0cf78c2d
Fix CreatePullRequest to expect 201 over 200
...
According to Github's API docs, creating a pull request should yield a
status code of 201 and not 200.
Closes #1226
2016-08-12 13:09:17 -04:00
Mislav Marohnić
7633e5b182
Fix GHE host prompts for `hub remote` commands
...
Now `hub remote` will only prompt to select from your configured hosts
if it can't infer the GitHub hostname from existing remotes.
In case you're prompted, and you choose a GHE host, now that choice will
be properly reflected in the generated URL, unlike before when it would
always revert to "github.com" regardless of choice.
Fixes #1141
2016-08-11 23:34:17 +02:00
Mislav Marohnić
af72087bc7
Add support for multiple assignees
2016-08-10 11:44:38 +02:00
Mislav Marohnić
23020acca7
Merge branch 'stable-to-master'
2016-08-10 11:44:27 +02:00
Mislav Marohnić
f712cbb8a8
Preserve headers other than "Authorization" in redirects to other hosts
2016-08-10 11:43:32 +02:00
Mislav Marohnić
f46eb1f932
Fix setting assignee, milestone, labels on new PR
2016-08-10 11:16:05 +02:00
Mislav Marohnić
f5141f48cb
fixup preserve headers
2016-08-09 22:08:40 +02:00
Mislav Marohnić
25a4dd061c
Resolve owner name in PR `head` specification in case of redirects
...
When the repo that hosts the `head` for the PR is moved to another
owner, the `owner:branch` specification will be wrong and the GitHub API
will return HTTP 422.
This resolves the latest owner/name pair for head repo so that the value
is never stale when submitting new PR to be created.
Fixes #467
2016-08-09 22:07:33 +02:00
Mislav Marohnić
193d8f8620
Follow 307 redirects in `fork`
...
Also, adopt the new name of the fork more precisely so it's reflected in
the new remote URL. The name of the new git remote is for now *not*
inherited from the returned Repository object for backwards compatibility.
Fixes #1178
2016-08-09 22:07:33 +02:00
Mislav Marohnić
28c5839d76
Identify repos explicitly in `clone` and `submodule` cukes
2016-08-09 22:07:33 +02:00
Mislav Marohnić
8e212d4892
Dereference repo name when cloning
...
This ensures that the final repository URL cloned will have the
repository's actual name after redirect.
2016-08-09 22:07:33 +02:00
Mislav Marohnić
4d81d6802b
Preserve headers when following GET redirects
...
Ref. https://github.com/golang/go/issues/4800
2016-08-09 22:07:33 +02:00
Mislav Marohnić
80606a5889
Follow 307 redirects in simpleApi, even for POST
...
HTTP client used to automatically follow GET redirects, or turn certain
POST redirects to GET when applicable, but for opening a new pull
request for a renamed repo, we need to repeat the POST against the
updated location.
2016-08-09 22:02:04 +02:00
Mislav Marohnić
56fce4bc6b
Migrate PR creation to simpleApi
2016-08-09 22:02:04 +02:00
Mislav Marohnić
8c1a62a2a1
Set `charset` declaration with JSON payloads
2016-08-09 22:02:04 +02:00
Mislav Marohnić
501af58913
Set "User-Agent" header for API requests
2016-08-09 22:02:04 +02:00
Mislav Marohnić
713fd93b14
Cache `hub.host` config output to avoid repeated queries
2016-08-07 23:55:56 +02:00