Граф коммитов

79 Коммитов

Автор SHA1 Сообщение Дата
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
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
David Calavera 109fb85818 Use a POSIX compatible flag parser.
So we can use flags before and after arguments, and we can group boolean flags, just like git does.
2013-12-29 15:07:58 -08:00
David Calavera 371ae8b432 Add global commands to the runner.
- Use a hash to lookup for commands.
- Add more tests for the command and runner execution.
2013-12-29 14:18:14 -08:00
Jingwen Owen Ou 712a6852bb Merge remote-tracking branch 'origin/master' into pull_in_cucumber_tests
Conflicts:
	commands/pull_request.go
	git/git.go
2013-12-28 01:31:03 -08:00
Jingwen Owen Ou ba6363328e Pull in cucumber tests from Hub
Since 31a85e519e...master

Some tests are ignored either because they don't make sense or WIP
2013-12-28 01:14:07 -08:00
David Calavera 42904c13e7 Simplify title and body hint message creation. 2013-12-26 20:57:08 -08:00
David Calavera 4a83ffd3cd Identify each message editor separatedly. 2013-12-23 21:37:56 -08:00
David Calavera 5674bdf4ba Move the editor the github package.
This avoids double importing issues.
2013-12-20 11:14:47 -08:00
David Calavera b3103e44af Extract editor logic from the pull request commands. 2013-12-19 16:54:14 -08:00
Jingwen Owen Ou 78dfeb89ec Fix bug that warning unpunished commits
The problem was we need to look at the commits for tracked branch instead of local base and head
2013-12-19 10:19:38 -08:00
Jingwen Owen Ou b480db1f7f Detach Project from GitHub 2013-12-17 07:45:48 -08:00
Jingwen Owen Ou 65bdca152a Fix pull request default message 2013-12-11 00:11:21 -08:00
Jingwen Owen Ou 0d6d8a0255 Disable guessing on user's fork 2013-12-10 13:42:54 -08:00
Jingwen Owen Ou 5ed0e8d733 Update man page 2013-12-10 13:42:53 -08:00
Jingwen Owen Ou ff05bba2bb Refactor 2013-12-10 13:42:53 -08:00
Jingwen Owen Ou 568e4294bf Get GitHub enterprise feature test passing 2013-12-10 13:42:53 -08:00