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

61 Коммитов

Автор SHA1 Сообщение Дата
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
Jingwen Owen Ou 5ddd2d45c7 Load multiple configs 2013-12-10 13:42:53 -08:00
Jingwen Owen Ou 23f68481e4 Fix bug due to project owner and name parsing 2013-12-10 13:42:53 -08:00
Jingwen Owen Ou 0b05efe4d9 Change owner only 2013-12-10 13:42:53 -08:00
Jingwen Owen Ou 0c8302da12 Fix more cucumber failure due to `-f` 2013-12-10 13:42:53 -08:00
Jingwen Owen Ou 6473f4d6a8 Fix more cucumber test failure due to -F 2013-12-10 13:42:52 -08:00
Jingwen Owen Ou 4a2ed5405d Move error to LocalRepo 2013-12-10 13:42:52 -08:00
Jingwen Owen Ou a270fd25f6 Import cucumber tests from Hub and get the pull_request.feature going a bit 2013-12-10 13:42:52 -08:00
Jingwen Owen Ou 9937772590 Trim space 2013-12-02 09:08:54 -08:00
Jingwen Owen Ou a50c94fa7d Rewrite implementation of edit pull request message 2013-12-02 08:51:45 -08:00
Jingwen Owen Ou 333cae20ab Use shell quote for exec cmd 2013-11-26 07:14:47 -08:00
Jingwen Owen Ou 08342b837e Return octokit.PullRequest 2013-11-07 11:54:41 -08:00
Jingwen Owen Ou b807210a32 Listing GitHub releases 👯 2013-09-26 12:59:31 -07:00
Jingwen Owen Ou 08b7cd31a0 Rename local var 2013-07-18 15:09:15 -07:00
Jingwen Owen Ou 61bbf079a8 Fix all comands to aware of noop 2013-07-05 13:45:22 -07:00
Jingwen Owen Ou 87430090a9 Enable noop 2013-07-05 11:10:24 -07:00
Jingwen Owen Ou e3d6319fa5 Rename to Args#Params 2013-07-02 11:56:45 -07:00
Jingwen Owen Ou 8c90910e8c Direct remove instead of defer 2013-06-30 09:11:25 -07:00
Jingwen Owen Ou e8559dc2c1 Remove messageFile after done 2013-06-30 09:05:26 -07:00