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

3338 Коммитов

Автор SHA1 Сообщение Дата
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
Mislav Marohnić 8983c0bfbe Automatically publish tagged release from Actions 2019-11-14 23:56:24 +01:00
Mislav Marohnić 121d04ed93 Avoid executing `git web--browse` in tests 2019-11-14 23:15:19 +01:00
Mislav Marohnić 2f417730b3 Set CI environment variable when running `test-all` 2019-11-14 23:15:04 +01:00
Mislav Marohnić ad927ebab4 Nullify GITHUB_REPOSITORY while testing 2019-11-14 23:15:04 +01:00
Mislav Marohnić 4c1633fa47 Don't check for Ruby warnings in CI
We don't care about this anymore, plus it's noisy.
2019-11-14 23:15:04 +01:00
Mislav Marohnić 0a3c6e2c36 Run test suite with GitHub Actions 2019-11-14 23:15:04 +01:00
Mislav Marohnić b45ad4b761 Merge branch 'man-apostrophes'
This allows regular apostrophes in help pages. This is useful when
writing contractions, e.g. "it's" or "can't".

Code spans are now marked up with ''double apostrophes''. Ideally we
would use backticks, but we are not able to since help text is embedded in
Go raw string literals.
2019-11-14 23:04:46 +01:00
Mislav Marohnić 148a6db28b [release] Properly list available flags 2019-11-14 23:01:55 +01:00
Mislav Marohnić 828765880d Properly mark up code spans in help pages 2019-11-14 23:01:33 +01:00
Mislav Marohnić 99af7c7a88 Merge remote-tracking branch 'origin/master' into man-apostrophes 2019-11-14 22:42:00 +01:00
Mislav Marohnić f4c25a46be
Merge pull request #2357 from dscho/correct-version
`script/version`: make sure to look at the correct `.git/` directory
2019-11-13 17:31:06 +01:00
Johannes Schindelin 02642d7020 script/version: look for the correct Git information
When unpacking the release .tar.gz of `hub` into a worktree (such as
MSYS2's `MINGW-packages` one), the version obtained via `git describe`
does not make sense.

Let's force Git to look only for `hub`'s Git info, if any.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2019-11-13 10:37:42 +01:00
Mislav Marohnić 342ac775b1 Add issue templates
Trying to discourage people from opening issues that are completely unrelated to the hub project
2019-11-12 11:50:40 +01:00
Mislav Marohnić d2f7211a49 [ci] Automatically bump Homebrew formula after release 2019-11-06 16:49:38 +01:00
Mislav Marohnić 0921a83aed hub 2.13.0 2019-11-06 16:12:34 +01:00
Mislav Marohnić 4d562bb538
Merge pull request #2317 from mdaniel/api-rate-limit
Honor the rate limit headers in "hub api"
2019-11-06 16:05:31 +01:00
Mislav Marohnić d4505721aa
Merge pull request #2342 from bram2000/improve-fish-completions
Added pr show completion and made more robust
2019-11-05 09:50:43 +01:00
Jon Bramley 81941c1b37 Added pr show completion and made more robust 2019-11-04 16:50:21 +00:00
Mislav Marohnić e17ffae9cb
Merge pull request #2335 from github/man-refactor
Restructure manpage-based help format
2019-10-31 03:22:43 +01:00
Mislav Marohnić 7d191a929b [help] Have `hub <cmd> --help` open the man page
This is for git compatibility, which seems to be doing the same.
2019-10-31 03:07:47 +01:00
Mislav Marohnić 1fbca9670d [test] Fix install_test
https://travis-ci.org/github/hub/jobs/605285000
2019-10-31 02:48:18 +01:00
Mislav Marohnić 875d4288bf [help] Enable `hub help --web <command>`
- `share/man/man1/*.html` now live in `share/doc/hub-doc/*.html`
- `help.format` git config values "web" & "html" now supported
2019-10-31 01:58:47 +01:00
Mislav Marohnić 8b5f6fe6ac [help] Support compressed man pages
On systems that have `man`, simply delegate to `man hub-<cmd>` rather
than trying to look up the `hub-<cmd>.1` file and passing a full path.
2019-10-31 00:40:28 +01:00