Skip to content

Commit

Permalink
fix(github): send versioned accept header (#6456)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
  • Loading branch information
rarkins and viceice committed Jun 7, 2020
1 parent 40c9c16 commit 3a4e153
Show file tree
Hide file tree
Showing 6 changed files with 295 additions and 294 deletions.
Expand Up @@ -32,7 +32,7 @@ exports[`datasource/github-releases getReleases returns releases 2`] = `
Array [
Object {
"headers": Object {
"accept": "application/json",
"accept": "application/vnd.github.v3+json",
"accept-encoding": "gzip, deflate",
"authorization": "token some-token",
"host": "api.github.com",
Expand Down
16 changes: 8 additions & 8 deletions lib/datasource/github-tags/__snapshots__/index.spec.ts.snap
Expand Up @@ -4,7 +4,7 @@ exports[`datasource/github-tags getDigest returns commit digest 1`] = `
Array [
Object {
"headers": Object {
"accept": "application/json",
"accept": "application/vnd.github.v3+json",
"accept-encoding": "gzip, deflate",
"authorization": "token some-token",
"host": "api.github.com",
Expand All @@ -20,7 +20,7 @@ exports[`datasource/github-tags getDigest returns digest 1`] = `
Array [
Object {
"headers": Object {
"accept": "application/json",
"accept": "application/vnd.github.v3+json",
"accept-encoding": "gzip, deflate",
"authorization": "token some-token",
"host": "api.github.com",
Expand All @@ -36,7 +36,7 @@ exports[`datasource/github-tags getDigest returns null for missed tagged digest
Array [
Object {
"headers": Object {
"accept": "application/json",
"accept": "application/vnd.github.v3+json",
"accept-encoding": "gzip, deflate",
"authorization": "token some-token",
"host": "api.github.com",
Expand All @@ -52,7 +52,7 @@ exports[`datasource/github-tags getDigest returns null if no token 1`] = `
Array [
Object {
"headers": Object {
"accept": "application/json",
"accept": "application/vnd.github.v3+json",
"accept-encoding": "gzip, deflate",
"authorization": "token some-token",
"host": "api.github.com",
Expand All @@ -68,7 +68,7 @@ exports[`datasource/github-tags getDigest returns tagged commit digest 1`] = `
Array [
Object {
"headers": Object {
"accept": "application/json",
"accept": "application/vnd.github.v3+json",
"accept-encoding": "gzip, deflate",
"authorization": "token some-token",
"host": "api.github.com",
Expand All @@ -79,7 +79,7 @@ Array [
},
Object {
"headers": Object {
"accept": "application/json",
"accept": "application/vnd.github.v3+json",
"accept-encoding": "gzip, deflate",
"authorization": "token some-token",
"host": "api.github.com",
Expand All @@ -95,7 +95,7 @@ exports[`datasource/github-tags getDigest warns if unknown ref 1`] = `
Array [
Object {
"headers": Object {
"accept": "application/json",
"accept": "application/vnd.github.v3+json",
"accept-encoding": "gzip, deflate",
"authorization": "token some-token",
"host": "api.github.com",
Expand Down Expand Up @@ -127,7 +127,7 @@ exports[`datasource/github-tags getReleases returns tags 2`] = `
Array [
Object {
"headers": Object {
"accept": "application/json",
"accept": "application/vnd.github.v3+json",
"accept-encoding": "gzip, deflate",
"authorization": "token some-token",
"host": "api.github.com",
Expand Down
8 changes: 4 additions & 4 deletions lib/datasource/pod/__snapshots__/index.spec.ts.snap
Expand Up @@ -18,7 +18,7 @@ exports[`datasource/cocoapods getReleases processes real data from Github 1`] =
Array [
Object {
"headers": Object {
"accept": "application/json",
"accept": "application/vnd.github.v3+json",
"accept-encoding": "gzip, deflate",
"host": "api.github.com",
"user-agent": "https://github.com/renovatebot/renovate",
Expand All @@ -28,7 +28,7 @@ Array [
},
Object {
"headers": Object {
"accept": "application/json",
"accept": "application/vnd.github.v3+json",
"accept-encoding": "gzip, deflate",
"host": "api.github.com",
"user-agent": "https://github.com/renovatebot/renovate",
Expand Down Expand Up @@ -57,7 +57,7 @@ exports[`datasource/cocoapods getReleases returns null for 404 1`] = `
Array [
Object {
"headers": Object {
"accept": "application/json",
"accept": "application/vnd.github.v3+json",
"accept-encoding": "gzip, deflate",
"host": "api.github.com",
"user-agent": "https://github.com/renovatebot/renovate",
Expand All @@ -67,7 +67,7 @@ Array [
},
Object {
"headers": Object {
"accept": "application/json",
"accept": "application/vnd.github.v3+json",
"accept-encoding": "gzip, deflate",
"host": "api.github.com",
"user-agent": "https://github.com/renovatebot/renovate",
Expand Down

0 comments on commit 3a4e153

Please sign in to comment.