Releases: cli/go-gh
Releases · cli/go-gh
v2.6.0
What's Changed
- Treat tenancy as non enterprise by @williammartin in #151
Full Changelog: v2.5.0...v2.6.0
v2.5.0
What's Changed
- Add header support to tableprinter by @heaths in #139
- Remove default configuration and add fallback configuration by @samcoe in #142
- Add support to config for setting and writing blank values by @samcoe in #143
- Fix sanitization bug by @samcoe in #145
- Config should load as unmodified by @williammartin in #147
New Contributors
- @williammartin made their first contribution in #147
Full Changelog: v2.4.0...v2.5.0
v2.4.0
What's Changed
- Fix a typo in the doc of
WithThemeby @y-yagi in #134 - Update workflows to use actions/checkout@v4 by @samcoe in #136
- Update dependencies to address security vulnerability by @samcoe in #137
- Update dependency to address security vulnerability by @samcoe in #140
New Contributors
Full Changelog: v2.3.0...v2.4.0
go-gh 2.3.0
What's Changed
Full Changelog: v2.2.0...v2.3.0
go-gh 2.2.0
What's Changed
- Add
CacheDirfunction toconfigpackage by @ffalor in #126 - Fix bug in
asciisanitizerwith validU+FFFDcharacter being reported as an error by @yin1999 in #128
New Contributors
Full Changelog: v2.1.0...v2.2.0
go-gh 2.1.0
What's Changed
- Add missing import statement to code example by @bendrucker in #124
- Export Path function from top level gh package by @samcoe in #123
- Add asciisanitizer package and sanitization to http clients by @samcoe in #125
New Contributors
- @bendrucker made their first contribution in #124
Full Changelog: v2.0.1...v2.1.0
go-gh 2.0.1
go-gh 2.0.0
What's Changed
This is a fairly large release with a couple new features and a bunch of tech debt cleanup for go-gh.
As part of keeping this library maintainable and inline with best Go practices we have made breaking changes to a couple of the packages thus constituting a bump of the major version to v2.0.0.
Below are the listed changes ordered by package as well as migration guidelines when applicable.
gh package
- Move
CurrentRepositoryfunction from top levelghpackage torepositorypackage.- To migrate:
gh.CurrentRepository->repository.Current
- To migrate:
- Move
RESTClientfunction from top levelghpackage toapipackage.- To migrate:
gh.RESTClient->api.DefaultRESTClientorapi.NewRESTClient
- To migrate:
- Move
GQLClientfunction from top levelghpackage toapipackage.- To migrate:
gh.GQlClient->api.DefaultGraphQLClientorapi.NewGraphQLClient
- To migrate:
- Move
HTTPClientfunction from top levelghpackage toapipackage.- To migrate:
gh.HTTPClient->api.DefaultHTTPClientorapi.NewHTTPClient
- To migrate:
- Add
ExecInteractiveby @stemar94 in #115 - Add
ExecContextfunction by @mislav in #115 - Add support for
GH_PATHenvironment variable toExecfunctions by @mislav in #115
api package
- Change references of
GQLtoGraphQL.- To migrate:
api.GQLError->api.GraphQLError - To migrate:
api.GQLErrorItem->api.GraphQLErrorItem
- To migrate:
- Change
ClientOptionsto be used with value semantics instead of pointer semantics.- This allows
ClientOptionsto be used with multiple clients without having to worry about them being modified.
- This allows
- Added
DefaultRESTClient,DefaultHTTPClient,DefaultGraphQLClientconvenience factory functions. - Change
RESTClientinterface type to a concrete type. - Change
GraphQLClientinterface type to a concrete type. - Change methods on
HTTPErrorandGraphQLErrorcustom error types to take pointers as method receivers. - Change
GraphQLClientQueryandMutatemethods to returnGraphQLErrorinstead ofshurcooL/graphql.Errors.
browser package
- Change
Newfactory function to return*Browserinstead ofBrowser.
config package
- Change methods on
InvalidConfigFileErrorandKeyNotFoundErrorcustom error types to take pointers as method receivers.
jq package
- Add
EvaluateFormattedfunction to pretty print JSON output by @mjpieters in #116
repository package
- Change
Repositoryinterface type to a concrete type.
ssh package
template package
- Change
Newfactory function to return*Templateinstead ofTemplate.
Other changes
New Contributors
- @mjpieters made their first contribution in #116
- @stemar94 made their first contribution in #115
Full Changelog: v1.2.1...v2.0.0
go-gh 1.2.1
What's Changed
Full Changelog: v1.2.0...v1.2.1
go-gh 1.2.0
What's Changed
- Add pagination examples for RESTClient and GQLClient by @samcoe in #102
- Bump golang.org/x/net from 0.5.0 to 0.7.0 by @dependabot in #106
- Expose stdin and stdout in term package by @samcoe in #103
- Read auth token from
ghif not found in other locations by @mislav in #107
New Contributors
- @dependabot made their first contribution in #106
Full Changelog: v1.1.0...v1.2.0