Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update module github.com/cli/go-gh to v2 #65

Merged
merged 1 commit into from
Feb 14, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 25, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/cli/go-gh v1.2.1 -> v2.5.0 age adoption passing confidence

Release Notes

cli/go-gh (github.com/cli/go-gh)

v2.5.0

Compare Source

What's Changed

New Contributors

Full Changelog: cli/go-gh@v2.4.0...v2.5.0

v2.4.0

Compare Source

What's Changed

New Contributors

Full Changelog: cli/go-gh@v2.3.0...v2.4.0

v2.3.0: go-gh 2.3.0

Compare Source

What's Changed

Full Changelog: cli/go-gh@v2.2.0...v2.3.0

v2.2.0: go-gh 2.2.0

Compare Source

What's Changed

New Contributors

Full Changelog: cli/go-gh@v2.1.0...v2.2.0

v2.1.0: go-gh 2.1.0

Compare Source

What's Changed

New Contributors

Full Changelog: cli/go-gh@v2.0.1...v2.1.0

v2.0.1: go-gh 2.0.1

Compare Source

What's Changed

New Contributors

Full Changelog: cli/go-gh@v2.0.0...v2.0.1

v2.0.0: go-gh 2.0.0

Compare Source

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 CurrentRepository function from top level gh package to repository package.
    • To migrate: gh.CurrentRepository -> repository.Current
  • Move RESTClient function from top level gh package to api package.
    • To migrate: gh.RESTClient -> api.DefaultRESTClient or api.NewRESTClient
  • Move GQLClient function from top level gh package to api package.
    • To migrate: gh.GQlClient -> api.DefaultGraphQLClient or api.NewGraphQLClient
  • Move HTTPClient function from top level gh package to api package.
    • To migrate: gh.HTTPClient -> api.DefaultHTTPClient or api.NewHTTPClient
  • Add ExecInteractive by @​stemar94 in https://github.com/cli/go-gh/pull/115
  • Add ExecContext function by @​mislav in https://github.com/cli/go-gh/pull/115
  • Add support for GH_PATH environment variable to Exec functions by @​mislav in https://github.com/cli/go-gh/pull/115
api package
  • Change references of GQL to GraphQL.
    • To migrate: api.GQLError -> api.GraphQLError
    • To migrate: api.GQLErrorItem -> api.GraphQLErrorItem
  • Change ClientOptions to be used with value semantics instead of pointer semantics.
    • This allows ClientOptions to be used with multiple clients without having to worry about them being modified.
  • Added DefaultRESTClient, DefaultHTTPClient, DefaultGraphQLClient convenience factory functions.
  • Change RESTClient interface type to a concrete type.
  • Change GraphQLClient interface type to a concrete type.
  • Change methods on HTTPError and GraphQLError custom error types to take pointers as method receivers.
  • Change GraphQLClient Query and Mutate methods to return GraphQLError instead of shurcooL/graphql.Errors.
browser package
  • Change New factory function to return *Browser instead of Browser.
config package
  • Change methods on InvalidConfigFileError and KeyNotFoundError custom error types to take pointers as method receivers.
jq package
repository package
  • Change Repository interface type to a concrete type.
ssh package
template package
  • Change New factory function to return *Template instead of Template.

Other changes

New Contributors

Full Changelog: cli/go-gh@v1.2.1...v2.0.0


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/github.com-cli-go-gh-2.x branch 2 times, most recently from ef487dd to 4a24873 Compare July 28, 2023 05:30
@nicokosi
Copy link
Owner

Before merging this PR, investigate why #64 triggered 472ea72. 🤷

@renovate renovate bot force-pushed the renovate/github.com-cli-go-gh-2.x branch from 4a24873 to 53d327b Compare August 14, 2023 18:58
@renovate renovate bot force-pushed the renovate/github.com-cli-go-gh-2.x branch from 53d327b to 9d89959 Compare August 25, 2023 18:37
@renovate renovate bot force-pushed the renovate/github.com-cli-go-gh-2.x branch from 9d89959 to 4f1e4f8 Compare September 19, 2023 14:08
@renovate renovate bot force-pushed the renovate/github.com-cli-go-gh-2.x branch from 4f1e4f8 to db66d9b Compare October 12, 2023 17:08
@renovate renovate bot changed the title Update module github.com/cli/go-gh to v2 Update module github.com/cli/go-gh to v2 - autoclosed Oct 23, 2023
@renovate renovate bot closed this Oct 23, 2023
@renovate renovate bot deleted the renovate/github.com-cli-go-gh-2.x branch October 23, 2023 09:27
@renovate renovate bot changed the title Update module github.com/cli/go-gh to v2 - autoclosed Update module github.com/cli/go-gh to v2 Oct 23, 2023
@renovate renovate bot reopened this Oct 23, 2023
@renovate renovate bot restored the renovate/github.com-cli-go-gh-2.x branch October 23, 2023 13:57
@renovate renovate bot force-pushed the renovate/github.com-cli-go-gh-2.x branch from db66d9b to 5db4005 Compare October 23, 2023 13:57
@renovate renovate bot force-pushed the renovate/github.com-cli-go-gh-2.x branch from 5db4005 to 4f1088e Compare November 16, 2023 12:43
@renovate renovate bot force-pushed the renovate/github.com-cli-go-gh-2.x branch 2 times, most recently from ad2b1f0 to 5aa0df0 Compare January 1, 2024 18:39
@renovate renovate bot force-pushed the renovate/github.com-cli-go-gh-2.x branch 2 times, most recently from abfd947 to 27d5bef Compare January 31, 2024 14:20
@renovate renovate bot force-pushed the renovate/github.com-cli-go-gh-2.x branch from 27d5bef to df84e28 Compare February 14, 2024 04:07
Copy link
Owner

@nicokosi nicokosi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

go-gh/v2 FTW! 🎉

@nicokosi nicokosi merged commit 16d8498 into main Feb 14, 2024
1 check passed
@nicokosi nicokosi deleted the renovate/github.com-cli-go-gh-2.x branch February 14, 2024 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant