From d355bbc17b9ae41aed31d1f90ecd8f498c6963c6 Mon Sep 17 00:00:00 2001 From: "renovate-for-tknetworks[bot]" <141540558+renovate-for-tknetworks[bot]@users.noreply.github.com> Date: Thu, 21 May 2026 22:41:54 +0000 Subject: [PATCH 1/2] fix(deps): update module github.com/google/go-github/v85 to v88 --- go.mod | 2 +- go.sum | 4 ++-- main.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 6c3d679..5b52e36 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ toolchain go1.26.3 require ( github.com/bradleyfalzon/ghinstallation/v2 v2.18.0 - github.com/google/go-github/v85 v85.0.0 + github.com/google/go-github/v88 v88.0.0 github.com/k0kubun/pp/v3 v3.5.1 ) diff --git a/go.sum b/go.sum index 406b069..0dab0e2 100644 --- a/go.sum +++ b/go.sum @@ -7,8 +7,8 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/go-github/v84 v84.0.0 h1:I/0Xn5IuChMe8TdmI2bbim5nyhaRFJ7DEdzmD2w+yVA= github.com/google/go-github/v84 v84.0.0/go.mod h1:WwYL1z1ajRdlaPszjVu/47x1L0PXukJBn73xsiYrRRQ= -github.com/google/go-github/v85 v85.0.0 h1:1+TLFX/akTFXK7o9Z9uAloQGufOn4ySa5DItUM1VWT4= -github.com/google/go-github/v85 v85.0.0/go.mod h1:jYkBnqN+SzR2A2fGKYfbt6DEEQAyxeK0Q2XpPV9ZFsU= +github.com/google/go-github/v88 v88.0.0 h1:dZA9IKkPK1eXZj4ypngnpRj5FwdpTv4whix2PrQMP7M= +github.com/google/go-github/v88 v88.0.0/go.mod h1:rufTDgn2N45wjhukLTyxmvc9nilSp3mr3Rgtt6b1MPw= github.com/google/go-querystring v1.2.0 h1:yhqkPbu2/OH+V9BfpCVPZkNmUXhb2gBxJArfhIxNtP0= github.com/google/go-querystring v1.2.0/go.mod h1:8IFJqpSRITyJ8QhQ13bmbeMBDfmeEJZD5A0egEOmkqU= github.com/k0kubun/pp/v3 v3.5.1 h1:fS8Xt0MWVVSiKwfXeIdE0WJlktdA87/gt0Hs0+j2R2s= diff --git a/main.go b/main.go index eb8aad7..ca6758d 100644 --- a/main.go +++ b/main.go @@ -10,7 +10,7 @@ import ( "time" "github.com/bradleyfalzon/ghinstallation/v2" - "github.com/google/go-github/v85/github" + "github.com/google/go-github/v88/github" "github.com/k0kubun/pp/v3" ) From 5bf4b6c2ffcb8989ace6403a51e3fe6425415a86 Mon Sep 17 00:00:00 2001 From: TANABE Ken-ichi Date: Sun, 14 Jun 2026 13:36:33 +0900 Subject: [PATCH 2/2] fix: address the breaking changes --- main.go | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/main.go b/main.go index ca6758d..1f9a97a 100644 --- a/main.go +++ b/main.go @@ -102,20 +102,25 @@ func showExport(token string) { } func showInstallations(appID int64, key []byte, githubURL string) { - atr, err := ghinstallation.NewAppsTransport(http.DefaultTransport, appID, key) - if err != nil { - log.Fatal(err) + atr, ghierr := ghinstallation.NewAppsTransport(http.DefaultTransport, appID, key) + if ghierr != nil { + log.Fatal(ghierr) } - var client *github.Client + var ( + client *github.Client + err error + ) + if githubURL != "" { atr.BaseURL = githubURL - client, err = github.NewEnterpriseClient(githubURL, githubURL, &http.Client{Transport: atr}) - if err != nil { - log.Fatalf("failed creating enterprise client: %v", err) - } + client, err = github.NewClient(github.WithEnterpriseURLs(githubURL, githubURL), github.WithTransport(atr)) } else { - client = github.NewClient(&http.Client{Transport: atr}) + client, err = github.NewClient(github.WithTransport(atr)) + } + + if err != nil { + log.Fatalf("failed creating the client: %v", err) } opts := &github.ListOptions{