Mislav Marohnić
b5e6387111
Merge remote-tracking branch 'origin/master' into edit-message
2016-08-21 11:33:39 +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ć
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ć
efa3ce7cf1
Consolidate `github.PullRequest` structs
2016-08-14 19:54:31 +02:00
Mislav Marohnić
af72087bc7
Add support for multiple assignees
2016-08-10 11:44:38 +02:00
Mislav Marohnić
f46eb1f932
Fix setting assignee, milestone, labels on new PR
2016-08-10 11:16:05 +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ć
56fce4bc6b
Migrate PR creation to simpleApi
2016-08-09 22:02:04 +02:00
ganmacs
9144e1df31
Add template tests
2016-05-30 12:49:53 -07:00
Nick LaMuro
fae4730bad
Implement GeneratePRTemplate in pull_request.go
...
Implements the GeneratePRTemplate in pull_request.go instead of the
custom logic that previously existed in the file. Addresses:
* Title being defaulted as the first line of the template
* Commit messages not defaulting as the title only properly
2016-05-30 12:49:53 -07:00
ganmacs
085821f05e
fix typo
2016-05-30 12:49:53 -07:00
ganmacs
2cf8451ad3
Support Pull Request tempalte
2016-05-30 12:49:53 -07:00
Carlos Martín Nieto
9413795ec7
Fix copy-pasta
...
The description for --head said it was the head branch instead of head branch.
2016-04-21 12:15:07 +02:00
Mislav Marohnić
fc9fbd4c38
Cross-references galore!
2016-01-25 02:50:01 +11:00
Mislav Marohnić
0a45aa8ddc
Reformat inline command help and expand usage options
2016-01-25 02:30:46 +11:00
Mislav Marohnić
1b862e3388
Switch from godep & rewriting import paths to GO15VENDOREXPERIMENT
2016-01-20 14:46:44 +11:00
Mislav Marohnić
648f25cf2f
Fix assigning user to pull request without labels
...
Fixes #1057
2016-01-20 13:46:59 +11:00
Keenan Brock
5355655711
rename gh command to hub in docs
2016-01-19 13:31:47 -05:00
Mislav Marohnić
ea2edfc101
Fix man page formatting after `pull-request` changes
...
[ci skip]
2015-09-26 19:15:43 +02:00
David Calavera
401c004564
Add missing completions and docs for pull-request flags.
...
Signed-off-by: David Calavera <david.calavera@gmail.com>
2015-08-06 16:21:43 -07:00
David Calavera
2ab5c55589
Allow to set pull request milestone and labels.
...
Add the `-M/--milestone` and `-l/--labels` flags to `hub pull-request` to
set the milestone or tags when a pull request is created.
Signed-off-by: David Calavera <david.calavera@gmail.com>
2015-08-05 14:29:51 -07:00
m_nakamura145
fd09d23bf2
Add -e option to pull request
2015-07-01 23:17:20 +09:00
Mislav Marohnić
ab0be0e55e
Update man page for new `pull-request --assign` option
2015-04-07 12:29:15 +02:00
Marko Mikulicic
eb46b81c0c
Address review comments:
...
- Add test for `pull-request -a`
- Narrow scope of `updateIssue` to `updateIssueAssignee`
2015-04-07 11:03:52 +02:00
Marko Mikulicic
cdc37ec99e
Allow assigning a new PR to a user, closes #371
2015-04-02 15:53:10 +02:00
Jingwen Owen Ou
6137851f15
Vendor dependencies by rewriting import paths
2014-11-30 09:16:57 -08:00
Jingwen Owen Ou
2a6bd52690
Revert to @mislav's solution to get base branch for pull request
...
As discussed https://github.com/github/hub/pull/646/files#r19065050 ,
we'd need to defend against getting base branch and tracking branch when
generating diff.
2014-10-19 17:51:50 -07:00
Jingwen Owen Ou
2e099873c4
Clean up project.go
...
* Clean up unused methods
* Refactor to Project.Remote
2014-10-19 15:39:17 -07:00
Mislav Marohnić
44aefe7728
Fix git commit summary in pull request message template
...
Use "origin/<base>" and "origin/<head>" for git commit comparison and
summary in the pull request template instead of the local branch
equivalents, since the local branches could be out of date with the
remote tracking branches.
2014-10-19 23:41:45 +02:00
Jingwen Owen Ou
b3d5be4d93
Refactor to `configService` to read & write `Config`
...
`configService` can save and load `Config` using a strategy of `configEncoder` and `configDecoder`. This pave the path for swapping out `tomlConfigEncoder` and `tomlConfigDecoder` with `yamlConfigEncoder` and `yamlConfigDecoder`.
`Configs` also has been renamed to `Config`.
2014-09-14 17:46:13 -07:00
Mislav Marohnić
fdb8f69b9a
Use `project.SameAs(otherProject)` instead of reflect.DeepEqual
...
This lets github.project implement its own comparison logic. For
instance, two projects can be the same even though their `Protocol`
values don't match.
2014-07-29 22:25:23 -07:00
Jingwen Owen Ou
0c9c9083ff
Add template for pull request
2014-07-16 12:24:07 -07:00
Jingwen Owen Ou
6da9c51d7c
Remove unused scenarios
2014-07-15 15:44:48 -07:00
Jingwen Owen Ou
5b84886a4d
Add support for `-o/--browse` option for pull-request
2014-04-15 15:52:45 +02:00
Jingwen Owen Ou
0d47b2b45b
Introduce lookup order for origin names
2014-04-09 09:22:20 -07:00
Jingwen Owen Ou
8bb46c2d84
Fix priority of loading origin remotes
2014-04-08 15:17:43 -07:00
Jingwen Owen Ou
a7badc8c84
Validate git dir when getting local repo
2014-04-01 13:40:02 -07:00
Jingwen Owen Ou
f054bdf54e
Return error when prompting for host.
...
This'll make sure we propagate error to the caller where we can reformat
the error message within the context.
This fixes `features/authentication.feature:85`
2014-03-27 16:42:14 -07:00
Jingwen Owen Ou
b70cb9d7de
Rename Credential to Host
...
See comment https://github.com/github/hub/pull/515#discussion_r10915319
2014-03-25 17:01:00 -07:00
Jingwen Owen Ou
72516fc377
Refactor to use toml for config
...
* Rename Credentials to Credential
* Use toml for config
2014-03-09 14:33:54 -07:00
Jingwen Owen Ou
286b5c8214
Only set head when it's empty
2014-03-05 08:39:23 -08:00
Jingwen Owen Ou
6c0e397dcc
Check null of trackedBranch
2014-03-05 08:37:17 -08:00
Jingwen Owen Ou
4daf6ce1d8
Don't delete file after editing
2014-03-02 11:43:43 -08:00
Jingwen Owen Ou
172e10164d
Distinguish between filePrefix and topic for Editor
2014-02-23 14:49:31 -08:00
Jingwen Owen Ou
b34682382e
Warn existence of URL
2014-02-23 14:24:37 -08:00
Jingwen Owen Ou
146516d3c3
Format API response error
2014-02-23 13:34:10 -08:00
Jingwen Owen Ou
498789a999
Change namespace to github/hub
2014-02-10 08:29:03 -08:00
Jingwen Owen Ou
0d38318113
Move GetTitleAndBodyFromFlags to commands/utils
2013-12-31 11:06:58 -08:00
Jingwen Owen Ou
aabfb73803
Refactor to github.Editor to make it testable
2013-12-31 10:29:05 -08:00