Skip to content

Commit 0a34f2a

Browse files
authored
Revert back to go-github v32 (#261)
In v33, the library removed some preview media type headers that are still required in GitHub Enterprise, although they are no longer required on GitHub.com. Until there's a GHE release that drops the requirement for the preview media types, we'll need to stick with the older version. Since we otherwise weren't taking advantage of new features or changes, this should be fine.
1 parent 71ccb32 commit 0a34f2a

File tree

129 files changed

+1175
-2904
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+1175
-2904
lines changed

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ require (
99
github.com/bluekeyes/templatetree v0.1.0
1010
github.com/c2h5oh/datasize v0.0.0-20171227191756-4eba002a5eae
1111
github.com/die-net/lrucache v0.0.0-20181227122439-19a39ef22a11
12-
github.com/google/go-github/v33 v33.0.0
12+
github.com/google/go-github/v32 v32.0.0
1313
github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79
1414
github.com/palantir/go-baseapp v0.2.2
15-
github.com/palantir/go-githubapp v0.6.0
15+
github.com/palantir/go-githubapp v0.5.0
1616
github.com/pkg/errors v0.9.1
1717
github.com/rs/zerolog v1.18.0
1818
github.com/sergi/go-diff v1.1.0 // indirect

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMyw
8888
github.com/google/go-github/v29 v29.0.2/go.mod h1:CHKiKKPHJ0REzfwc14QMklvtHwCveD0PxlMjLlzAM5E=
8989
github.com/google/go-github/v29 v29.0.3 h1:IktKCTwU//aFHnpA+2SLIi7Oo9uhAzgsdZNbcAqhgdc=
9090
github.com/google/go-github/v29 v29.0.3/go.mod h1:CHKiKKPHJ0REzfwc14QMklvtHwCveD0PxlMjLlzAM5E=
91-
github.com/google/go-github/v33 v33.0.0 h1:qAf9yP0qc54ufQxzwv+u9H0tiVOnPJxo0lI/JXqw3ZM=
92-
github.com/google/go-github/v33 v33.0.0/go.mod h1:GMdDnVZY/2TsWgp/lkYnpSAh6TrzhANBBwm6k6TTEXg=
91+
github.com/google/go-github/v32 v32.0.0 h1:q74KVb22spUq0U5HqZ9VCYqQz8YRuOtL/39ZnfwO+NM=
92+
github.com/google/go-github/v32 v32.0.0/go.mod h1:rIEpZD9CTDQwDK9GDrtMTycQNA4JU3qBsCizh3q2WCI=
9393
github.com/google/go-querystring v1.0.0 h1:Xkwi/a1rcvNg1PPYe5vI8GbeBY/jrVuDX5ASuANWTrk=
9494
github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck=
9595
github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs=
@@ -169,8 +169,8 @@ github.com/palantir/go-baseapp v0.2.0 h1:EruWj7lBB7koSLuUjWRvNoIXdmowmLGj+rqiuoT
169169
github.com/palantir/go-baseapp v0.2.0/go.mod h1:7rEjgYzWbHLLuY+mV2iJthxTddEc6aO+kFYsjDKNmEs=
170170
github.com/palantir/go-baseapp v0.2.2 h1:BE5AJX6BHnC0a/98Vzy7VW+fMqFID91ofivGWUp1dqo=
171171
github.com/palantir/go-baseapp v0.2.2/go.mod h1:pJTK0PJxhuIyoLAWHYH0svQJmWGeFDLZ9Xd9mLaOBtw=
172-
github.com/palantir/go-githubapp v0.6.0 h1:FjjoD5Enh8DoEdW8ofZscKms7mHXs6gfNvdKlJ55TGY=
173-
github.com/palantir/go-githubapp v0.6.0/go.mod h1:i8KvEdQ5AF0wZg6C+GFXBTSTpL1zAuObjiQbdo86Kbc=
172+
github.com/palantir/go-githubapp v0.5.0 h1:mAdLgaaNV0zrqSv1q0zpJbKq65H92uIrAlSwRIRsGEE=
173+
github.com/palantir/go-githubapp v0.5.0/go.mod h1:/Xm5h66uEBX24An2Ln8H6Rk44z8uwk4E6m4gNrPadjQ=
174174
github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
175175
github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic=
176176
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=

pull/github.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"strings"
2121
"time"
2222

23-
"github.com/google/go-github/v33/github"
23+
"github.com/google/go-github/v32/github"
2424
"github.com/pkg/errors"
2525
"github.com/rs/zerolog"
2626
"github.com/shurcooL/githubv4"

pull/github_membership.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
"context"
1919
"strings"
2020

21-
"github.com/google/go-github/v33/github"
21+
"github.com/google/go-github/v32/github"
2222
"github.com/pkg/errors"
2323
)
2424

pull/github_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"testing"
2222
"time"
2323

24-
"github.com/google/go-github/v33/github"
24+
"github.com/google/go-github/v32/github"
2525
"github.com/shurcooL/githubv4"
2626
"github.com/stretchr/testify/assert"
2727
"github.com/stretchr/testify/require"

server/handler/base.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"strings"
2222
"time"
2323

24-
"github.com/google/go-github/v33/github"
24+
"github.com/google/go-github/v32/github"
2525
"github.com/palantir/go-baseapp/baseapp"
2626
"github.com/palantir/go-githubapp/githubapp"
2727
"github.com/pkg/errors"

server/handler/check_run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
"context"
1919
"encoding/json"
2020

21-
"github.com/google/go-github/v33/github"
21+
"github.com/google/go-github/v32/github"
2222
"github.com/palantir/go-githubapp/githubapp"
2323
"github.com/pkg/errors"
2424

server/handler/cross_org.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
"context"
1919
"strings"
2020

21-
"github.com/google/go-github/v33/github"
21+
"github.com/google/go-github/v32/github"
2222
"github.com/palantir/go-githubapp/githubapp"
2323
"github.com/pkg/errors"
2424

server/handler/details.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323

2424
"github.com/alexedwards/scs"
2525
"github.com/bluekeyes/templatetree"
26-
"github.com/google/go-github/v33/github"
26+
"github.com/google/go-github/v32/github"
2727
"github.com/pkg/errors"
2828
"goji.io/pat"
2929

server/handler/fetcher.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"net/http"
2222
"strings"
2323

24-
"github.com/google/go-github/v33/github"
24+
"github.com/google/go-github/v32/github"
2525
"github.com/pkg/errors"
2626
"github.com/rs/zerolog"
2727
"gopkg.in/yaml.v2"
@@ -159,7 +159,7 @@ func (cf *ConfigFetcher) fetchConfigContents(ctx context.Context, client *github
159159
}
160160
if ok && isTooLargeError(rerr) {
161161
// GetContents only supports file sizes up to 1 MB, DownloadContents supports files up to 100 MB (with an additional API call)
162-
reader, _, err := client.Repositories.DownloadContents(ctx, owner, repo, path, opts)
162+
reader, err := client.Repositories.DownloadContents(ctx, owner, repo, path, opts)
163163
if err != nil {
164164
return nil, errors.Wrapf(err, "failed to download content of %s/%s@%s/%s", owner, repo, ref, path)
165165
}

0 commit comments

Comments
 (0)