terraform-provider-github icon indicating copy to clipboard operation
terraform-provider-github copied to clipboard

[MAINT]: Upgrade google/go-github to v70

Open zepeng811 opened this issue 10 months ago • 2 comments

Describe the need

We are currently on v66 and the latest version for google/go-github is v70. We should upgrade the dependency to stay on the latest version.

Release Notes:

  • v67: https://github.com/google/go-github/releases/tag/v67.0.0
  • v68: https://github.com/google/go-github/releases/tag/v68.0.0
  • v69: https://github.com/google/go-github/releases/tag/v69.0.0
  • v70: https://github.com/google/go-github/releases/tag/v70.0.0

SDK Version

google/go-github v70

API Version

N/A

Relevant log output

N/A

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

zepeng811 avatar Mar 21 '25 17:03 zepeng811

go-github v68 includes a breaking change: https://github.com/google/go-github/releases/tag/v68.0.0

BREAKING CHANGE: All support for "Project (classic)" is removed and Project responses are replaced by ProjectV2 (renamed from ProjectsV2).

The REST API (and go-github) doesn't support new projects. https://docs.github.com/en/rest/projects/projects?apiVersion=2022-11-28

These endpoints only interact with projects (classic). To manage Projects, use the GraphQL API.

So I guess we need to replace it to GraphQL API with https://github.com/shurcooL/githubv4 . It maybe result in this provider's breaking change.

(related to https://github.com/integrations/terraform-provider-github/issues/2494 )

mikutas avatar Mar 26 '25 07:03 mikutas

Any ETA on this update?

tobias-jenkner avatar May 14 '25 15:05 tobias-jenkner

Any updates on this? The newest version for go-github is already v74 and can't await to see a version upgrade in a new release of terraform-provider-github

al3xanderschmidt avatar Sep 18 '25 13:09 al3xanderschmidt

We're working on upgrading go-github to v77 (and beyond).
There is a PR tracking the changes.

This upgrade introduces a number of breaking changes.
We expect to release it in the coming weeks.

eyalgal avatar Nov 17 '25 20:11 eyalgal