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

3261 Коммитов

Автор SHA1 Сообщение Дата
Julian Fahrer ab374d9860 Fail when running issue update without specifying fields to update 2020-01-19 10:03:48 -08:00
Mislav Marohnić ddecc72b3f Ensure `response.Request` is populated for responses from cache
https://github.com/github/hub/runs/397657829
2020-01-19 15:47:17 +01:00
Mislav Marohnić a6389b3a81 Print token authorization URL on HTTP 403 due to `X-Github-Sso` challenge 2020-01-19 14:58:49 +01:00
Mislav Marohnić bf6e236835 Detect and report insufficient OAuth scopes leading to 40x response 2020-01-19 14:58:48 +01:00
Mislav Marohnić ddc9665878 Log various `X-*` GitHub response headers in HUB_VERBOSE mode
These should be helpful for debugging purposes.
2020-01-19 14:58:48 +01:00
Julian Fahrer 5df6b31923 Use `update` instead of `edit` to update issues 2020-01-18 16:52:30 -08:00
Mislav Marohnić 87da91aeef Simplify `FormatError` 2020-01-18 19:13:33 +01:00
Mislav Marohnić df829d42d5
Merge pull request #2442 from github/redirect-301
Refuse to follow HTTP 301, 302 redirects for non-GET requests
2020-01-17 14:56:38 +01:00
Mislav Marohnić ff6b131d93 Refuse to follow HTTP 301, 302 redirects for non-GET requests
Go's `net/http` will intentionally change the HTTP method being used
after a 301, 302, or 303 redirect for a non-GET request.

When encountering a 301 or 302 response codes, fail any non-GET request
with an tip that 308 and 307 should be used, respectively.
2020-01-16 19:40:28 +01:00
Julian Fahrer ae70177ac9 Extract applying common params into functions 2020-01-06 11:42:43 -08:00
Julian Fahrer fc2b4461ed Add the ability to edit issues 2020-01-03 18:37:34 -08:00
Mislav Marohnić b7b4a3df1d [docs] Clarify HUB_VERBOSE
Closes #2430, ref. #1551
2019-12-31 00:03:19 +01:00
Mislav Marohnić 3344f0cec5
Merge pull request #2428 from johanavril/string-equals-ignore-case
improve Project SameAs logic
2019-12-24 11:46:45 +01:00
johanavril 9822d1a0d9 improve Project SameAs logic
use strings.EqualFold instead of strings.ToLower with equal
operation when comparing string ignore case
2019-12-23 22:05:27 +07:00
Mislav Marohnić a5fbf29be6
Merge pull request #2423 from github/add-google-analytics
Add Google Analytics to man page template
2019-12-16 19:42:53 +01:00
Lee Reilly c91307625b Add Google Analytics to man page template 2019-12-16 10:28:43 -08:00
Mislav Marohnić 4c2e441469
Merge pull request #2363 from srafi1/transfer-issue
Transfer Issues to Other Repositories
2019-12-15 20:59:24 +01:00
Mislav Marohnić 8efca94d7a [ci] Increase minimum test coverage treshold 2019-12-15 20:56:14 +01:00
Mislav Marohnić c8e26daa2c Merge remote-tracking branch 'origin/master' into transfer-issue 2019-12-15 20:49:24 +01:00
Mislav Marohnić d147a422d4 [issue] Add `transfer` tests 2019-12-15 20:48:45 +01:00
Mislav Marohnić dbecf7b0c8 [issue] Cleanup `transfer` implementation 2019-12-15 20:48:11 +01:00
Mislav Marohnić f88ff18d71
Merge pull request #2390 from dsifford/patch-1
use `command grep` vs `grep`
2019-12-15 10:50:16 +01:00
Derek Sifford 410e84156f
use `command grep` vs `grep`
This change accounts for uses who might have an alias set to grep with is not compatible with `grep -E` (e.g. `alias grep=rg`)
2019-12-14 17:39:11 -05:00
Mislav Marohnić 7b02a665dd Fix `hub help <cmd>` on Windows
Fixes #2384
2019-12-10 12:15:24 +01:00
Mislav Marohnić abe06789db Avoid ever dumping binary content in HUB_VERBOSE mode for HTTP
Only ever dump HTTP request/response bodies if they are of the following
types:
- `text/*`
- `application/json` or `*+json`

Allows using `HUB_VERBOSE=1 hub release create -a <file>` to debug
attaching binary assets.
2019-12-05 13:30:13 +01:00
Mislav Marohnić 1cbb35250c
Merge pull request #2380 from macrat/check-configuration-file
Add type assertion test to YAML config decoder
2019-12-04 10:46:03 +01:00
SHIDA Yuuma f91562d4a8
Added type assertion test to YAML config decoder
See #2379
2019-12-04 17:39:33 +09:00
Mislav Marohnić 1244ec235c
Merge pull request #2378 from mariusae/color
commands: consult global color.ui setting when --color=auto
2019-12-03 04:40:09 +01:00
Mislav Marohnić e1247ccd6a No fail-fast in CI 2019-12-03 04:36:26 +01:00
Mislav Marohnić 4b4843b331 Improve `color.ui` config support
- Query `Config` instead of `GlobalConfig` to respect per-repo and
  per-invocation configuration too.

- Support "never" (synonym for "false") and "always" values.
2019-12-03 04:30:34 +01:00
marius a. eriksen 96cedc7f4e commands: consult global color.ui setting when --color=auto
This makes the behavior consistent with other git commands.
2019-12-03 03:59:24 +01:00
srafi1 4786bcd817 formatted with gofmt 2019-11-25 14:09:26 -05:00
srafi1 4d398ba983 use a variables field in GraphQL requests 2019-11-25 14:06:46 -05:00
srafi1 4f85bc36f5 more concise error messages 2019-11-21 15:12:21 -05:00
srafi1 4e60f9309d formatted with gofmt 2019-11-21 15:04:44 -05:00
srafi1 872c82a8fb fixed usage message 2019-11-21 15:04:19 -05:00
srafi1 127f2d5a67 better unmarshalling strategy 2019-11-21 15:02:55 -05:00
srafi1 c278240b35 fix parameter doc format 2019-11-21 14:41:52 -05:00
srafi1 83a19478ee usage error fix 2019-11-21 14:14:18 -05:00
srafi1 9897263302 Merge branch 'master' into transfer-issue 2019-11-21 14:11:52 -05:00
srafi1 05ad803de2 transfer issue docs 2019-11-16 21:30:27 -05:00
srafi1 9915cbd981 transfer issue and check for errors 2019-11-16 21:22:15 -05:00
srafi1 493fc9cefd error checking 2019-11-16 20:52:09 -05:00
srafi1 c313ea8fe2 request and unmarshal repositoryID 2019-11-16 20:37:47 -05:00
srafi1 7f124dfbee unmarshal issueID out of response data 2019-11-16 20:06:13 -05:00
srafi1 58e8a89074 get issueid using graphql 2019-11-16 19:19:57 -05:00
srafi1 14dc440aee registered command to be used 2019-11-15 16:31:33 -05:00
srafi1 5d1b52e79d empty transfer command 2019-11-15 16:07:47 -05:00
Mislav Marohnić ec93940647
Merge pull request #2343 from github/ci-actions
Run test suite with GitHub Actions
2019-11-15 00:02:15 +01:00
Mislav Marohnić d110725515 🔥 Travis CI setup 2019-11-14 23:59:11 +01:00