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

3046 Коммитов

Автор SHA1 Сообщение Дата
Mislav Marohnić 603a731aa4 [gist] Use first configured API hosts instead of prompting
If hub is configured with multiple hosts (usually including GitHub
Enterprise instances), every invocation to `hub gist` would prompt to
select a host. Assume that people want to use the first configured host
by default (they can change it via GITHUB_HOST).
2019-10-18 12:16:28 +02:00
Mislav Marohnić cb22257c0c [gist] Add tests for error scenarios 2019-10-18 12:10:19 +02:00
Mislav Marohnić 7f02e371f2 [gist] Tweaks docs 2019-10-18 11:59:09 +02:00
Phil Dibowitz 597604d777 fix help 2019-10-18 00:11:29 -07:00
Phil Dibowitz 2507852e48 update tests 2019-10-18 00:09:52 -07:00
Phil Dibowitz 194be2ae9f code review bits 2019-10-17 23:59:27 -07:00
Mislav Marohnić 9e7f3920db [gist] Rename variables to camelCase 2019-10-07 13:51:38 +02:00
Mislav Marohnić dffd80c585 [gist] Print files in consistent alphabetical order 2019-10-07 13:19:25 +02:00
Mislav Marohnić ecea276617 [gist] Enable command outside the context of a repo 2019-10-07 12:49:09 +02:00
Mislav Marohnić f6ebe22633 [gist] Improve error handling on create operation 2019-10-07 12:31:43 +02:00
Phil Dibowitz c9f3dc0c23 Code review fixes
* Stop using GenericAPIRequest
* Move GH interactions and structs to `client.go`
* Catch scopes problems
2019-10-05 16:11:54 -07:00
Phil Dibowitz 1e35be83c1 Make a gist command
This addresses #2226 and #2116 by creating a `gist` subcommand.

This allows you to both create and retrieve gists. When creating a gist
it can be public or private.

In order to do this, the `gist` scope is added to the token we request.

Closes: #2226
Closes: #2116

Signed-off-by: Phil Dibowitz <phil@ipom.com>
2019-09-16 23:55:58 -07:00
Mislav Marohnić 7496b3dab3
Merge pull request #2258 from lwolfsonkin/fish-completions-hub-pr
Added `hub pr` fish completions and wrapped `git` completions
2019-09-13 11:17:50 +02:00
Lawrence 7efbf964b1 Added `hub pr` fish completions and wrapped `git` completions
* Redefined `__fish_hub_using_command` to support multiple commands (such as `hub pr list`)
* Added `hub pr list` and `hub pr checkout` along with their options
2019-09-07 19:41:06 -04:00
Mislav Marohnić 4aba585417 hub 2.12.4 2019-09-06 14:00:06 -07:00
Mislav Marohnić 51ee76e69e
Merge pull request #2256 from github/github-repository-env
Make hub easier to use from GitHub Actions
2019-09-06 13:59:08 -07:00
Mislav Marohnić 4a107fd264 [docs] Expand list of supported environment variables 2019-09-06 13:54:02 -07:00
Mislav Marohnić 46897a1cc9 [docs] Clarify how GITHUB_REPOSITORY is used 2019-09-06 13:53:30 -07:00
Mislav Marohnić c9dac78bb7 [auth] Infer GITHUB_USER value from GITHUB_REPOSITORY
This allows hub to be easier used within GitHub Actions where GITHUB_REPOSITORY is pre-populated by default. If GITHUB_USER is not set in the environment, its value is inferred from the part of GITHUB_REPOSITORY value until the first slash character.
2019-09-03 16:43:08 -07:00
Mislav Marohnić 2fa955aed2 Merge branch 'add-ubuntu-instructions'
[ci skip]
2019-08-23 16:55:08 +02:00
Mislav Marohnić e5e57a31d1 [docs] Condense package managers section 2019-08-23 16:54:59 +02:00
Mislav Marohnić 378107318e [docs] Tweak usage example 2019-08-23 16:36:58 +02:00
Mislav Marohnić 5dca79fa94 [docs] Simplyify building from source for Go 1.11 modules 2019-08-23 16:34:15 +02:00
Mislav Marohnić caaf282b63 [docs] Shorten installation instructions 2019-08-23 16:34:12 +02:00
Mislav Marohnić 01133e6f84 [docs] Tweak Ubuntu instructions 2019-08-23 16:34:09 +02:00
Mislav Marohnić 60d3d2cd8f Merge remote-tracking branch 'origin' into add-ubuntu-instructions 2019-08-23 16:24:19 +02:00
Mislav Marohnić 5a6f8f9702
Merge pull request #2238 from whuang8/hub-api-string-interpolation
hub api url generation fixes
2019-08-23 16:10:31 +02:00
whuang8 3b97144f70 [api] Replace all occurrences of `{owner}` and `{repo}` 2019-08-23 15:18:00 +02:00
Mislav Marohnić 7dbb5db1fc
Merge pull request #2240 from github/ci-server-boot
Update Cucumber and Aruba test runners
2019-08-22 00:55:43 +02:00
Mislav Marohnić 2157016f65 Speed up setting environment variables in Aruba 2019-08-22 00:16:29 +02:00
Mislav Marohnić ce5d885866 Clean up obsolete step 2019-08-22 00:16:29 +02:00
Mislav Marohnić 15d4bc951c Speed up cucumber tests
This replaces Aruba's usage of ChildProcess with `popen3`. It supports
no process timeouts, but damn it's fast.
2019-08-22 00:16:29 +02:00
Mislav Marohnić 14fc5cba27 🔥 obsolete Aruba tweaks 2019-08-21 19:55:03 +02:00
Mislav Marohnić 7ba028e771 Typos in variable names 2019-08-21 19:54:50 +02:00
Mislav Marohnić 41fe71d899 Fix tweaking Aruba exit timeout 2019-08-21 19:54:19 +02:00
Mislav Marohnić 08fe8265bd Fix whitespace in cukes
https://travis-ci.org/github/hub/jobs/574964882
2019-08-21 19:53:45 +02:00
Mislav Marohnić 8d50944b2f Leverage `run_command_and_stop` from Aruba 2019-08-21 19:17:46 +02:00
Mislav Marohnić a64f9d5939 Switch to "the output should not contain anything" built-in step 2019-08-21 18:23:50 +02:00
Mislav Marohnić 09285c4872 Fix matching variable output such as `$HOME` for new Aruba 2019-08-21 18:22:48 +02:00
Mislav Marohnić dbef9c5425 🔥 `in_current_directory` 2019-08-21 17:54:23 +02:00
Mislav Marohnić 613f964a6b Update Aruba to 1.0.0 prerelease 2019-08-21 17:53:25 +02:00
Mislav Marohnić 28f18d099e Update Cucumber 2019-08-21 17:33:11 +02:00
Mislav Marohnić a770e967c6 Timeout::Error 2019-08-21 17:29:55 +02:00
Mislav Marohnić 9589d6142c Fix `submodule add` cukes
No idea how this was suddenly broken! :/
2019-08-21 17:29:33 +02:00
Mislav Marohnić 11c6418747 Misc. Aruba compatibility 2019-08-21 17:29:00 +02:00
Mislav Marohnić 9a8bf6c881 Aruba compatibility re: current dir and subcommands 2019-08-21 17:27:57 +02:00
Mislav Marohnić 48f8c34ebd Aruba compatibility for environment variables 2019-08-21 17:21:53 +02:00
Mislav Marohnić 7c0f244e19 Bump dependencies 2019-08-21 17:19:09 +02:00
Mislav Marohnić 29d99d0412 Retry starting up local API server before failing
Attempts to address intermittent "Rack application timed out during boot"
https://travis-ci.org/github/hub/jobs/574770004
2019-08-21 12:07:44 +02:00
Mislav Marohnić 32e2de369b
Merge pull request #2237 from JPry/bug/branch_quoting
Change quotes in Sync command to be consistent with Git style
2019-08-21 11:34:22 +02:00