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

269 Коммитов

Автор SHA1 Сообщение Дата
David Calavera 51428d5449 Allow to chain subcommands using `command.Use(subcommandName, subcommand)`. 2013-12-28 21:24:08 -08:00
Jingwen Owen Ou fce2d4df47 Merge branch 'pull_in_cucumber_tests' 2013-12-28 19:23:15 -08:00
Jingwen Owen Ou 334d8ab2b7 Only split alias command if it doesn't start with ! 2013-12-28 19:17:21 -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 d726ad56bd Do not print the uploading message for each file.
Change the message only when the upload is done.
2013-12-25 15:43:00 -08:00
David Calavera b4e81896b6 Add check for empty arguments. 2013-12-24 15:36:36 -08:00
David Calavera eeddb8902e Add upload indicator. 2013-12-24 15:13:40 -08:00
David Calavera 7a0a506e23 Merge branch 'master' into gh_release
* master:
  Gramma issue in README
  Bump homebrew-gh which fixes sha and download path
  Bump homebrew-gh submodule to 1.0.0
  Bump version to v1.0.0
  Make it explicit that multiple credentials are allowed
  Quote path
  Add link to available setting
  Add autoupdate setting to README
  Make sure we load the deprecated configuration and override it with the new one.
  Save the new config after assigning the credentials.
  Save the configuration with the new format when the deprecated one is detected.
  Update versions automatically when autoupdate is set to true.
2013-12-24 14:37:13 -08:00
David Calavera e81a80ef02 Use the upload service in octokit. 2013-12-24 13:44:04 -08:00
David Calavera 4a83ffd3cd Identify each message editor separatedly. 2013-12-23 21:37:56 -08:00
David Calavera df6578b470 Assert directory truthy. 2013-12-23 15:58:28 -08:00
Jingwen Owen Ou 46ba0fb52c Bump version to v1.0.0 2013-12-22 06:47:44 -08:00
David Calavera a129fce32f Update versions automatically when autoupdate is set to true. 2013-12-20 21:20:22 -08:00
David Calavera 4f0312f35d Move `isEmptyDir` to the command utilities.
Removes duplicated test helper.
2013-12-20 16:45:48 -08:00
David Calavera 6b14600fe9 Remove double isDir helper. 2013-12-20 16:41:14 -08:00
David Calavera 6480fc7a0f Use WaitGroup to upload each asset in a different goroutine. 2013-12-20 15:48:21 -08:00
David Calavera 43f398e879 Write a message in the editor showing what you're doing. 2013-12-20 15:39:10 -08:00
David Calavera 51fe2ae002 Invert flags order. 2013-12-20 15:19:00 -08:00
David Calavera d2f1cd527a Read only part of the asset to detect the content type. 2013-12-20 14:22:02 -08:00
David Calavera 1fcddbe8ca Add release creation and assets uploading. 2013-12-20 11:15:41 -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 10b4c58fae Add the release command do the help. 2013-12-20 10:23:12 -08:00
David Calavera f2807ba201 Create a new release based on the local branch. 2013-12-19 17:10:17 -08:00
David Calavera b3103e44af Extract editor logic from the pull request commands. 2013-12-19 16:54:14 -08:00
David Calavera 2e6c824876 Add command to create releases. 2013-12-19 15:49:36 -08:00
Jingwen Owen Ou 64c5ec3d19 Fallback to 0.26.0 2013-12-19 15:05:34 -08:00
Jingwen Owen Ou 6faecd1887 Don't return an error if there's no newer version 2013-12-19 14:48:33 -08:00
Jingwen Owen Ou 8f797c11fd Only prompt for update if there's a new release
Reference: https://github.com/jingweno/gh/pull/128#issuecomment-30971747
2013-12-19 14:44:58 -08:00
Jingwen Owen Ou 0302410abc Don't prompt for update if it's in dev 2013-12-19 13:48:20 -08:00
Jingwen Owen Ou 4dfb4c58db Automatically prompt for update 2013-12-19 13:40:36 -08:00
Jingwen Owen Ou a54faff669 Extract to Updater 2013-12-19 11:30:29 -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 89b15b9c52 Extract out to unzipFile 2013-12-18 14:21:35 -08:00
Jingwen Owen Ou ab9f22224d Don't update if current version is the latest 2013-12-18 14:07:22 -08:00
Jingwen Owen Ou 7d8d512503 Wording the message 2013-12-18 12:43:01 -08:00
Jingwen Owen Ou 3c246814dc Say done when it's done 2013-12-18 12:35:38 -08:00
Jingwen Owen Ou 65e85f3c38 Update it! 2013-12-18 12:31:37 -08:00
Jingwen Owen Ou 3f4670d707 Download and unzip gh 2013-12-18 12:22:59 -08:00
Jingwen Owen Ou 7b8770d228 Add update command 2013-12-18 10:57:01 -08:00
Jingwen Owen Ou edda656503 Bump version to v0.26.0 2013-12-17 10:24:39 -08:00
Jingwen Owen Ou b480db1f7f Detach Project from GitHub 2013-12-17 07:45:48 -08:00
Jingwen Owen Ou e506ac1437 Remove GitHub.New() 2013-12-17 07:22:43 -08:00
Jingwen Owen Ou 6ae79676aa Remove some deprecated methods 2013-12-17 07:07:26 -08:00
Jingwen Owen Ou 47ef6c2375 Submodule is compatible with Hub 2013-12-16 16:35:51 -08:00
Jingwen Owen Ou 4316c40c3d Remote is compatible with Hub 2013-12-16 07:54:46 -08:00
David Calavera 085a2bec83 Check the available hosts and credentials before asking for them for the default host. 2013-12-14 15:08:30 -08:00
David Calavera 0c0dbcaaf4 Use the first configured credentials when there is only one.
This will avoid to ask for the github.com credentials when the only configuration is related to enterprise.
2013-12-14 14:34:23 -08:00
Jingwen Owen Ou 7eccbcc0a2 Alias is compatible with Hub 2013-12-14 07:37:16 -08:00