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

33 Коммитов

Автор SHA1 Сообщение Дата
Tom Lazar 39d7697169 add support for hub download --include flag 2019-10-24 18:43:23 -05:00
Mislav Marohnić a5c0ac97e2 [release] Add a test scenario for `create -F <FILE>` 2019-09-29 10:58:21 +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ć a64f9d5939 Switch to "the output should not contain anything" built-in step 2019-08-21 18:23:50 +02:00
Mislav Marohnić 52d1300849 [release] Fix uploading release assets
Allows sending `api.github.com` OAuth token to all `*.github.com`
subdomains. In case `git.my.org` is an Enterprise instance, this allows
sending the token to `git.my.org` and all of `*.git.my.org`.
2019-01-26 18:43:28 +01:00
Mislav Marohnić d5761b714b Add `--format=<FORMAT>` functionality to `issue show`, `release show` 2018-10-30 23:19:53 +01:00
Mislav Marohnić 3c8b674faa Use canonical repo for `hub release` operations
For `hub release show`, `MainProject()` was used to fetch the canonical
repo of the current project. However, the `create`, `edit`, and `delete`
operations used `CurrentProject()` most likely by mistake. This caused
the `hub release edit` operation, for example, to be potentially
performed against a fork rather than the canonical repo, depending on
the currenly checked out branch.

Fixes #1881
2018-09-27 11:51:54 +02:00
Mislav Marohnić 0bf338195c Increase test coverage for `hub release` 2018-06-07 15:53:38 +02:00
Mislav Marohnić cc1757cab5 Improve scenario when `<TAG>` was not given to `hub release` 2018-06-07 15:53:13 +02:00
Mislav Marohnić 0871816652 Add `hub release --format=<FORMAT>` option 2018-05-30 12:05:45 +02:00
Mislav Marohnić afdcb6120b Fix crash if release isn't found for `hub release delete <TAG>`
Fixes #1747
2018-05-29 11:02:32 +02:00
Mislav Marohnić a2fb6670bb Smarter `per_page` HTTP query when limiting results
If the result limit is N, the default `per_page` will be `N + N/2`
instead of the default 100. This aims to achieve faster API requests for
relatively low values of N.
2018-01-29 23:41:23 +01:00
Mislav Marohnić 31ab5e5147 Fix limiting number of results from `release`, `issue`
- Stops HTTP pagination once the limit has been reached
- Cleans up client implementation by passing around a filter block
2018-01-29 23:30:41 +01:00
Michael Kaiser d2de3094a0 Add limit flag for issue and release commands 2017-10-14 23:50:39 +02:00
Michael Kaiser 5c9731c9e4 Fetch all releases when doing `hub release`
As suggested at #1511, instead of fetching only the first 30 releases,
follow the `next` link to fetch all pages.
2017-10-02 18:05:10 +02:00
Mislav Marohnić 9a0c525b42 Merge pull request #1327 from wesbland/delete_release
Add ability to delete releases
2017-06-26 23:44:43 +02:00
Mislav Marohnić 629d13908f Merge branch 'no-prerelease' 2017-04-10 23:09:52 +02:00
Mislav Marohnić acc85a0aa9 Make it `release --exclude-prereleases` (plural)
This is for consistency with `--include-drafts` (also plural).
2017-04-10 23:09:11 +02:00
Wesley Bland 4f419aa4fe Add ability to delete releases
To mirror all the other `hub release` commands, allow the user to delete
releases from the command line. The new subcommand takes only one
argument (the tag of the release being deleted).

Fixes #1326
2016-11-01 15:47:15 -05:00
Mislav Marohnić f7c1105df3 Copy to clipboard for `create`, `issue`, `pull-request`, `release`
Also add `--browse` functionality to `create` and `release` for parity
with `issue` and `pull-request`.
2016-09-11 18:21:23 +02:00
Mislav Marohnić 3255fce35f Rename the `--commitish` shorthand from `-c` to `-t`
This is to free up `-c` for `--copy`.
2016-09-11 03:13:23 +02:00
Mislav Marohnić d5c8337f1f Fix `release` from detached HEAD
Don't try to default `target_commitish` to the currently checked out
branch. Instead, keep the value blank unless explicitly provided. It
will default to the main branch on the server.
2016-08-21 18:10:31 +02:00
James Armes e8a86a9587 Added release flag to exclude prereleases. 2016-06-02 13:12:41 -04:00
Mislav Marohnić f07b5fbbda Add tests for `ci-status` and `releases` in Enterprise mode 2016-05-03 16:59:19 +02:00
Glenn Pratt c57cb62ef9 Add `hub release download` command that downloads all assets. 2016-02-26 12:24:52 -06:00
Mislav Marohnić 05a5e7c492 Handle case when editing a release just uploads new assets 2016-02-01 13:02:58 +11:00
Mislav Marohnić 5992fd1b61 Encapsulate HTTP error handling for simpleApi calls 2016-02-01 12:13:02 +11:00
Mislav Marohnić 2f48cd1e09 No need to show release tag name in `release show <TAG>` output
Since TAG is provided as argument, the user already knows the tag name
and there's no need to include it (rather clumsily) in the output.
2016-01-31 23:04:57 +11:00
Mislav Marohnić 1bb1b025fe Simplify flag handling in `hub release` commands 2016-01-31 22:45:01 +11:00
Mislav Marohnić 0fb96e053e Add `hub release show <TAG>` 2016-01-31 18:57:44 +11:00
Mislav Marohnić 531c044f61 Add `hub release --include-draft` flag 2016-01-31 18:57:44 +11:00
Mislav Marohnić 864e505a08 Have `hub release` only ouput tag names for non-draft releases 2016-01-31 18:57:44 +11:00
Mislav Marohnić 6ab30c80f1 Add rudimentary cuke for `hub release` 2016-01-31 18:57:44 +11:00