Releases: mislav/hub
hub 2.8.4
-
Add
hub api -H
flag to set HTTP request headers -
Add
hub api -i
flag to output HTTP response headers -
Change how
hub api
deals with HTTP errors:- HTTP response is now printed on stdout regardless of HTTP status
- No longer print an extra newline after HTTP response body
- No more
Error: HTTP {STATUS}
message on stderr - hub exits with status 22 instead of 1
-
Fix hub execution under WSL (Windows Subsystem for Linux)
hub 2.8.3
Changes since v2.7
-
New
hub api
command for scripting with GitHub API #2016
https://hub.github.com/hub-api.1.html -
Re-implement CLI flag parsing so that
--message <MSG>
is equivalent to--message=<MSG>
#2008 -
Re-implement
make man-pages
in Go instead of Ruby #1990 -
issue create --label
is nowissue create --labels
to align with existing documentation -
Output crash debugging information on stderr instead of stdout
-
Build improvements:
- respect environment LDFLAGS
- strip the build path from resulting executable
- enable reproducible builds with SOURCE_DATE_EPOCH
Changes since v2.8.2
- Fix uploading assets with
hub release
hub 2.8.2
hub 2.7.1
-
Respect chosen Enterprise host on
hub init -g
-
Ensure consistent order of options when prompted to choose between multiple configured GitHub hosts
-
Ensure alphabetical sort of
hub issue labels
output -
Improve contrast of label text vs. its background color
-
Various documentation formatting tweaks
hub 2.7.0
Features
-
Add support for
hub pr list --state=merged
-
Add base/head/merge commit SHA and merged date information to
hub pr list --format=FORMAT
-
Un-deprecate converting issues to pull requests with
hub pull-request -i <issue>
2a748a0
Fixes
-
Improve detecting default
hub pull-request
base branch name -
Avoid the
Aborted: the origin remote doesn't point to a GitHub repository
error by allowing other git remotes as fallback -
Improve
hub create
dealing with an existing "origin" remote -
Fix 256-color terminal support for macOS Terminal.app
-
Don't choke on literal
%
output characters when using--format=FORMAT
-
Replace deprecated Dial with DialContext
Documentation
-
Document how we scan git remotes and branch tracking information https://hub.github.com/hub.1.html#CONVENTIONS
-
Indicate that long-form CLI flags with values must use the equal sign like
--message=VALUE
hub 2.6.1
hub 2.6.0
Features
-
Use "scissors" line to delineate comments in editable messages instead of stripping away lines that start with
#
. This helps preserve Markdown headings inhub pull-request
,hub release create
, and similar commands that open a text editor interactively.Everything above the following line is kept in the message; everything below is discarded:
# ------------------------ >8 ------------------------
-
New command
hub issue show <NUMBER>
-
Add
hub release show --format=<FORMAT>
functionality -
hub pr list --format=%rs
lists requested reviewers -
Add support for communicating with GitHub Enterprise over Unix socket
# ~/.config/hub example.com: user: USER oauth_token: TOKEN unix_socket: /path/to/socket
Fixes
-
Prevent
hub create
setting a public upstream when creating a private repo -
Fix
hub create
in place of a renamed repo -
Fix
hub release create/edit/delete
when there are multiple git remotes -
Auto-detect private/pushable repos in
hub remote add
-
Fix
hub ci-status
exit code when there is only Checks -
Allow
hub compare <RANGE>
even if not on any branch -
Ensure consistent sort direction when listing issues, PRs
-
Match requested team names by slug instead of name in
hub pull-request -r <TEAM>
hub 2.5.1
-
hub issue create
: ignore the.github/ISSUE_TEMPLATE
directory instead of crashing -
hub pull-request
: avoid re-requesting reviewers in case of CODEOWNERS -
hub ci-status
: handle cases when Checks API is unavailable, like older GitHub Enterprise -
Handle HTTP 422 message format from server response
-
Ignore crash for malformed
~/.config/hub
file -
Clarify
hub init -g
documentation that it doesn't implyhub create
-
hub clone
: add more documentation about git protocol used
hub 2.5.0
Features
- Have
ci-status
also query Checks API
Fixes
- Do not pass `--cmd' to vi editor to ensure compatibility with older vi
- Simplify cherry-picking commits from pull request URLs
- Allow single-character branches/tag names in
hub compare
- Fix
hub compare
for Enterprise when<USER>
is specified - Support
remote add -t BRANCH
argument - Bash shell completion fixes for git 2.18
- Documentation fixes
hub 2.4.0
Features
-
hub delete [<OWNER>/]<REPO>
-
Add
hub compare --copy
flag -
Add
hub release --format=<FORMAT>
option -
Add
hub pull-request --no-edit
flag -
When checking out a pull request, ensure that
git push
with no arguments works -
Support XDG Base Directory Specification
Tweaks
-
Enable
hub pr list -h <BRANCH>
when owner isn't specified -
Include
docs/
in list of locations to look up pull request and issue templates in