diff --git a/lib/datasource/github-releases/__snapshots__/index.spec.ts.snap b/lib/datasource/github-releases/__snapshots__/index.spec.ts.snap index 28c3887d3574a234cb012fd52bd7969c6ec3ef14..1ddafae4351bbdcbbed436c7c3479a5c8a3b8980 100644 --- a/lib/datasource/github-releases/__snapshots__/index.spec.ts.snap +++ b/lib/datasource/github-releases/__snapshots__/index.spec.ts.snap @@ -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", diff --git a/lib/datasource/github-tags/__snapshots__/index.spec.ts.snap b/lib/datasource/github-tags/__snapshots__/index.spec.ts.snap index 14cf30b51d629c09de1771ce9ce37e9d43ce2142..f1aae206713c9dc565b4f4a75539b9adb1e0e3af 100644 --- a/lib/datasource/github-tags/__snapshots__/index.spec.ts.snap +++ b/lib/datasource/github-tags/__snapshots__/index.spec.ts.snap @@ -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", @@ -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", @@ -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", @@ -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", @@ -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", @@ -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", @@ -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", @@ -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", diff --git a/lib/datasource/pod/__snapshots__/index.spec.ts.snap b/lib/datasource/pod/__snapshots__/index.spec.ts.snap index be773d988fc87351cbecedf3e1ae278dbf73f26b..21f8c797b8c6c5d2d6ba3c12fd6b9f9a3d53b0bb 100644 --- a/lib/datasource/pod/__snapshots__/index.spec.ts.snap +++ b/lib/datasource/pod/__snapshots__/index.spec.ts.snap @@ -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", @@ -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", @@ -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", @@ -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", diff --git a/lib/platform/github/__snapshots__/index.spec.ts.snap b/lib/platform/github/__snapshots__/index.spec.ts.snap index c34f8fcac2258a86c8dd4fecca23b6a91f0efe71..5168e041036b26c1dab309cbb4f12312596ff59c 100644 --- a/lib/platform/github/__snapshots__/index.spec.ts.snap +++ b/lib/platform/github/__snapshots__/index.spec.ts.snap @@ -4,7 +4,7 @@ exports[`platform/github addAssignees(issueNo, assignees) should add the given a Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -16,7 +16,7 @@ Array [ Object { "body": "{\\"assignees\\":[\\"someuser\\",\\"someotheruser\\"]}", "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 42, @@ -34,7 +34,7 @@ exports[`platform/github addReviewers(issueNo, reviewers) should add the given r Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -46,7 +46,7 @@ Array [ Object { "body": "{\\"reviewers\\":[\\"someuser\\",\\"someotheruser\\"],\\"team_reviewers\\":[\\"someteam\\"]}", "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 72, @@ -73,7 +73,7 @@ exports[`platform/github createPr() should create a draftPR if set in the settin Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -85,7 +85,7 @@ Array [ Object { "body": "{\\"title\\":\\"PR draft\\",\\"head\\":\\"some:some-branch\\",\\"base\\":\\"master\\",\\"body\\":\\"This is a result of a draft\\",\\"draft\\":true}", "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 112, @@ -112,7 +112,7 @@ exports[`platform/github createPr() should create and return a PR object 2`] = ` Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -124,7 +124,7 @@ Array [ Object { "body": "{\\"title\\":\\"The Title\\",\\"head\\":\\"some:some-branch\\",\\"base\\":\\"master\\",\\"body\\":\\"Hello world\\",\\"draft\\":false}", "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 98, @@ -138,7 +138,7 @@ Array [ Object { "body": "[\\"deps\\",\\"renovate\\"]", "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 19, @@ -151,7 +151,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -163,7 +163,7 @@ Array [ Object { "body": "{\\"state\\":\\"success\\",\\"description\\":\\"Renovate verified pull request\\",\\"context\\":\\"renovate/verify\\",\\"target_url\\":\\"https://github.com/renovatebot/renovate\\"}", "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 149, @@ -176,7 +176,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -187,7 +187,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -212,7 +212,7 @@ exports[`platform/github createPr() should use defaultBranch 2`] = ` Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -224,7 +224,7 @@ Array [ Object { "body": "{\\"title\\":\\"The Title\\",\\"head\\":\\"some:some-branch\\",\\"base\\":\\"master\\",\\"body\\":\\"Hello world\\",\\"draft\\":false}", "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 98, @@ -242,7 +242,7 @@ exports[`platform/github deleteLabel(issueNo, label) should delete the label 1`] Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -253,7 +253,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -269,7 +269,7 @@ exports[`platform/github ensureComment add comment if not found 1`] = ` Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -310,7 +310,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 513, @@ -323,7 +323,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -335,7 +335,7 @@ Array [ Object { "body": "{\\"body\\":\\"### some-subject\\\\n\\\\nsome\\\\ncontent\\"}", "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 44, @@ -353,7 +353,7 @@ exports[`platform/github ensureComment add updates comment if necessary 1`] = ` Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -394,7 +394,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 513, @@ -407,7 +407,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -419,7 +419,7 @@ Array [ Object { "body": "{\\"body\\":\\"### some-subject\\\\n\\\\nsome\\\\ncontent\\"}", "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 44, @@ -437,7 +437,7 @@ exports[`platform/github ensureComment adds comment if found in closed PR list 1 Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -478,7 +478,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 513, @@ -492,7 +492,7 @@ Array [ Object { "body": "{\\"body\\":\\"### some-subject\\\\n\\\\nsome\\\\ncontent\\"}", "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 44, @@ -510,7 +510,7 @@ exports[`platform/github ensureComment handles comment with no description 1`] = Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -551,7 +551,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 513, @@ -564,7 +564,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -580,7 +580,7 @@ exports[`platform/github ensureComment skips comment 1`] = ` Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -621,7 +621,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 513, @@ -634,7 +634,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -650,7 +650,7 @@ exports[`platform/github ensureCommentRemoval deletes comment by content if foun Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -691,7 +691,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 513, @@ -704,7 +704,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -715,7 +715,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -731,7 +731,7 @@ exports[`platform/github ensureCommentRemoval deletes comment by topic if found Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -772,7 +772,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 513, @@ -785,7 +785,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -796,7 +796,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -837,7 +837,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 425, @@ -850,7 +850,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -891,7 +891,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 425, @@ -905,7 +905,7 @@ Array [ Object { "body": "{\\"title\\":\\"new-title\\",\\"body\\":\\"new-content\\"}", "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 42, @@ -948,7 +948,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 425, @@ -961,7 +961,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -1002,7 +1002,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 425, @@ -1015,7 +1015,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -1027,7 +1027,7 @@ Array [ Object { "body": "{\\"title\\":\\"title-2\\",\\"body\\":\\"new-content\\"}", "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 40, @@ -1070,7 +1070,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 425, @@ -1084,7 +1084,7 @@ Array [ Object { "body": "{\\"state\\":\\"closed\\"}", "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 18, @@ -1097,7 +1097,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -1138,7 +1138,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 425, @@ -1181,7 +1181,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 425, @@ -1194,7 +1194,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -1235,7 +1235,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 425, @@ -1248,7 +1248,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -1289,7 +1289,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 425, @@ -1302,7 +1302,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -1314,7 +1314,7 @@ Array [ Object { "body": "{\\"body\\":\\"newer-content\\",\\"state\\":\\"open\\"}", "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 39, @@ -1357,7 +1357,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 425, @@ -1371,7 +1371,7 @@ Array [ Object { "body": "{\\"state\\":\\"closed\\"}", "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 18, @@ -1414,7 +1414,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 425, @@ -1427,7 +1427,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -1468,7 +1468,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 425, @@ -1486,7 +1486,7 @@ exports[`platform/github findPr(branchName, prTitle, state) caches pr list 1`] = Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -1502,7 +1502,7 @@ exports[`platform/github findPr(branchName, prTitle, state) returns true if no t Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -1518,7 +1518,7 @@ exports[`platform/github findPr(branchName, prTitle, state) returns true if not Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -1534,7 +1534,7 @@ exports[`platform/github getBranchPr(branchName) should return null if no PR exi Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -1545,7 +1545,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -1587,7 +1587,7 @@ exports[`platform/github getBranchPr(branchName) should return the PR object 2`] Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -1598,7 +1598,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -1675,7 +1675,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 1264, @@ -1718,7 +1718,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 513, @@ -1731,7 +1731,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -1742,7 +1742,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -1784,7 +1784,7 @@ exports[`platform/github getBranchPr(branchName) should return the PR object in Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -1795,7 +1795,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -1806,7 +1806,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -1817,7 +1817,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -1829,7 +1829,7 @@ Array [ Object { "body": "{\\"sha\\":\\"1234\\",\\"force\\":true}", "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 27, @@ -1842,7 +1842,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -1919,7 +1919,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 1264, @@ -1962,7 +1962,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 513, @@ -1975,7 +1975,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -1986,7 +1986,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -2002,7 +2002,7 @@ exports[`platform/github getBranchStatus() defaults to pending 1`] = ` Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -2013,7 +2013,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -2040,7 +2040,7 @@ exports[`platform/github getBranchStatus() return failed if unsupported required Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -2056,7 +2056,7 @@ exports[`platform/github getBranchStatus() returns success if requiredStatusChec Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -2072,7 +2072,7 @@ exports[`platform/github getBranchStatus() should fail if a check run has failed Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -2083,7 +2083,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -2110,7 +2110,7 @@ exports[`platform/github getBranchStatus() should fail if a check run is pending Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -2121,7 +2121,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -2148,7 +2148,7 @@ exports[`platform/github getBranchStatus() should pass through failed 1`] = ` Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -2159,7 +2159,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -2186,7 +2186,7 @@ exports[`platform/github getBranchStatus() should pass through success 1`] = ` Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -2197,7 +2197,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -2224,7 +2224,7 @@ exports[`platform/github getBranchStatus() should succeed if no status and all p Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -2235,7 +2235,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -2262,7 +2262,7 @@ exports[`platform/github getBranchStatusCheck returns null 1`] = ` Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -2273,7 +2273,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -2289,7 +2289,7 @@ exports[`platform/github getBranchStatusCheck returns state if found 1`] = ` Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -2300,7 +2300,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -2339,7 +2339,7 @@ exports[`platform/github getPr(prNo) should return PR from closed graphql result Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -2416,7 +2416,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 1264, @@ -2429,7 +2429,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -2470,7 +2470,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 513, @@ -2504,7 +2504,7 @@ exports[`platform/github getPr(prNo) should return PR from graphql result 2`] = Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -2581,7 +2581,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 1264, @@ -2594,7 +2594,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -2623,7 +2623,7 @@ exports[`platform/github getPr(prNo) should return a PR object - 0 2`] = ` Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -2700,7 +2700,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 1264, @@ -2743,7 +2743,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 513, @@ -2756,7 +2756,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -2791,7 +2791,7 @@ exports[`platform/github getPr(prNo) should return a PR object - 1 2`] = ` Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -2868,7 +2868,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 1264, @@ -2911,7 +2911,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 513, @@ -2924,7 +2924,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -2935,7 +2935,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -2969,7 +2969,7 @@ exports[`platform/github getPr(prNo) should return a PR object - 2 2`] = ` Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -3046,7 +3046,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 1264, @@ -3089,7 +3089,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 513, @@ -3102,7 +3102,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -3113,7 +3113,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -3148,7 +3148,7 @@ exports[`platform/github getPr(prNo) should return a not rebaseable PR if gitAut Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -3225,7 +3225,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 1264, @@ -3268,7 +3268,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 513, @@ -3281,7 +3281,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -3292,7 +3292,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -3303,7 +3303,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -3338,7 +3338,7 @@ exports[`platform/github getPr(prNo) should return a rebaseable PR despite multi Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -3415,7 +3415,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 1264, @@ -3458,7 +3458,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 513, @@ -3471,7 +3471,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -3482,7 +3482,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -3493,7 +3493,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -3528,7 +3528,7 @@ exports[`platform/github getPr(prNo) should return a rebaseable PR if gitAuthor Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -3605,7 +3605,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 1264, @@ -3648,7 +3648,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 513, @@ -3661,7 +3661,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -3672,7 +3672,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -3683,7 +3683,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -3718,7 +3718,7 @@ exports[`platform/github getPr(prNo) should return a rebaseable PR if web-flow i Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -3795,7 +3795,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 1264, @@ -3838,7 +3838,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 513, @@ -3851,7 +3851,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -3862,7 +3862,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -3873,7 +3873,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -3908,7 +3908,7 @@ exports[`platform/github getPr(prNo) should return an unrebaseable PR if multipl Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -3985,7 +3985,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 1264, @@ -4028,7 +4028,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 513, @@ -4041,7 +4041,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -4052,7 +4052,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -4063,7 +4063,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -4079,7 +4079,7 @@ exports[`platform/github getPr(prNo) should return null if no PR is returned fro Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -4156,7 +4156,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 1264, @@ -4199,7 +4199,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.merge-info-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.merge-info-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 513, @@ -4212,7 +4212,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -4228,7 +4228,7 @@ exports[`platform/github getPrBody(input) returns not-updated pr body for GHE 1` Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "github.company.com", @@ -4239,7 +4239,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "github.company.com", @@ -4250,7 +4250,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "github.company.com", @@ -4268,7 +4268,7 @@ exports[`platform/github getRepoForceRebase should detect repoForceRebase 1`] = Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -4284,7 +4284,7 @@ exports[`platform/github getRepoForceRebase should handle 403 1`] = ` Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -4300,7 +4300,7 @@ exports[`platform/github getRepoForceRebase should handle 404 1`] = ` Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -4316,7 +4316,7 @@ exports[`platform/github getRepoForceRebase should throw 401 1`] = ` Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -4339,7 +4339,7 @@ exports[`platform/github getRepos should return an array of repos 2`] = ` Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -4399,7 +4399,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.vixen-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.vixen-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 697, @@ -4461,7 +4461,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.vixen-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.vixen-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 697, @@ -4523,7 +4523,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.vixen-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.vixen-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 697, @@ -4585,7 +4585,7 @@ Array [ }, }, "headers": Object { - "accept": "application/vnd.github.vixen-preview+json", + "accept": "application/vnd.github.v3+json, application/vnd.github.vixen-preview+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 697, @@ -4611,7 +4611,7 @@ exports[`platform/github initPlatform() should support custom endpoint 2`] = ` Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "ghe.renovatebot.com", @@ -4622,7 +4622,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "ghe.renovatebot.com", @@ -4646,7 +4646,7 @@ exports[`platform/github initPlatform() should support default endpoint no email Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -4657,7 +4657,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -4681,7 +4681,7 @@ exports[`platform/github initPlatform() should support default endpoint no email Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -4692,7 +4692,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -4716,7 +4716,7 @@ exports[`platform/github initPlatform() should support default endpoint with ema Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -4727,7 +4727,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -4743,7 +4743,7 @@ exports[`platform/github initPlatform() should throw if user failure 1`] = ` Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -4766,7 +4766,7 @@ exports[`platform/github initRepo should fork when forkMode 2`] = ` Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -4777,7 +4777,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -4788,7 +4788,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -4799,7 +4799,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -4822,7 +4822,7 @@ exports[`platform/github initRepo should merge 2`] = ` Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -4845,7 +4845,7 @@ exports[`platform/github initRepo should not guess at merge 2`] = ` Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -4868,7 +4868,7 @@ exports[`platform/github initRepo should rebase 2`] = ` Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -4891,7 +4891,7 @@ exports[`platform/github initRepo should squash 2`] = ` Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -4907,7 +4907,7 @@ exports[`platform/github initRepo should throw err if disabled in renovate.json Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -4918,7 +4918,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -4934,7 +4934,7 @@ exports[`platform/github initRepo should throw error if archived 1`] = ` Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -4950,7 +4950,7 @@ exports[`platform/github initRepo should throw error if renamed 1`] = ` Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -4973,7 +4973,7 @@ exports[`platform/github initRepo should update fork when forkMode 2`] = ` Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -4984,7 +4984,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -4995,7 +4995,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -5006,7 +5006,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -5018,7 +5018,7 @@ Array [ Object { "body": "{\\"sha\\":\\"1234\\",\\"force\\":true}", "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 27, @@ -5036,7 +5036,7 @@ exports[`platform/github initRepo throws not-found 1`] = ` Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -5052,7 +5052,7 @@ exports[`platform/github mergePr(prNo) - autodetection should give up 1`] = ` Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -5064,7 +5064,7 @@ Array [ Object { "body": "{\\"merge_method\\":\\"rebase\\"}", "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 25, @@ -5078,7 +5078,7 @@ Array [ Object { "body": "{\\"merge_method\\":\\"rebase\\"}", "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 25, @@ -5092,7 +5092,7 @@ Array [ Object { "body": "{\\"merge_method\\":\\"squash\\"}", "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 25, @@ -5106,7 +5106,7 @@ Array [ Object { "body": "{\\"merge_method\\":\\"merge\\"}", "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 24, @@ -5124,7 +5124,7 @@ exports[`platform/github mergePr(prNo) - autodetection should try merge after sq Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -5136,7 +5136,7 @@ Array [ Object { "body": "{\\"merge_method\\":\\"rebase\\"}", "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 25, @@ -5150,7 +5150,7 @@ Array [ Object { "body": "{\\"merge_method\\":\\"rebase\\"}", "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 25, @@ -5164,7 +5164,7 @@ Array [ Object { "body": "{\\"merge_method\\":\\"squash\\"}", "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 25, @@ -5182,7 +5182,7 @@ exports[`platform/github mergePr(prNo) - autodetection should try rebase first 1 Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -5194,7 +5194,7 @@ Array [ Object { "body": "{\\"merge_method\\":\\"rebase\\"}", "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 25, @@ -5212,7 +5212,7 @@ exports[`platform/github mergePr(prNo) - autodetection should try squash after r Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -5224,7 +5224,7 @@ Array [ Object { "body": "{\\"merge_method\\":\\"rebase\\"}", "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 25, @@ -5242,7 +5242,7 @@ exports[`platform/github mergePr(prNo) should handle merge error 1`] = ` Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -5254,7 +5254,7 @@ Array [ Object { "body": "{\\"merge_method\\":\\"rebase\\"}", "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 25, @@ -5272,7 +5272,7 @@ exports[`platform/github mergePr(prNo) should merge the PR 1`] = ` Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -5284,7 +5284,7 @@ Array [ Object { "body": "{\\"merge_method\\":\\"rebase\\"}", "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 25, @@ -5302,7 +5302,7 @@ exports[`platform/github setBranchStatus returns if already set 1`] = ` Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -5313,7 +5313,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -5329,7 +5329,7 @@ exports[`platform/github setBranchStatus sets branch status 1`] = ` Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -5340,7 +5340,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -5352,7 +5352,7 @@ Array [ Object { "body": "{\\"state\\":\\"success\\",\\"description\\":\\"some-description\\",\\"context\\":\\"some-context\\",\\"target_url\\":\\"some-url\\"}", "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 101, @@ -5365,7 +5365,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -5376,7 +5376,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -5392,7 +5392,7 @@ exports[`platform/github updatePr(prNo, title, body) should update the PR 1`] = Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "host": "api.github.com", @@ -5404,7 +5404,7 @@ Array [ Object { "body": "{\\"title\\":\\"The New Title\\",\\"body\\":\\"Hello world again\\"}", "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc123", "content-length": 52, diff --git a/lib/util/http/github.ts b/lib/util/http/github.ts index 8c27a114056e3acf22fc290ac792326976e9f178..76c7d9d76db75185c5dfab59f4dedea5847a264f 100644 --- a/lib/util/http/github.ts +++ b/lib/util/http/github.ts @@ -165,16 +165,17 @@ export class GithubHttp extends Http<GithubHttpOptions, GithubHttpOptions> { opts.baseUrl = opts.baseUrl.replace('/v3/', '/'); } - if (global.appMode) { - const accept = 'application/vnd.github.machine-man-preview+json'; - opts.headers = { - accept, - ...opts.headers, - }; - const optsAccept = opts?.headers?.accept; - if (typeof optsAccept === 'string' && !optsAccept.includes(accept)) { - opts.headers.accept = `${accept}, ${opts.headers.accept}`; - } + const accept = global.appMode + ? 'application/vnd.github.machine-man-preview+json' + : 'application/vnd.github.v3+json'; + + opts.headers = { + accept, + ...opts.headers, + }; + const optsAccept = opts.headers.accept; + if (typeof optsAccept === 'string' && !optsAccept.includes(accept)) { + opts.headers.accept = `${accept}, ${optsAccept}`; } try { diff --git a/lib/workers/pr/changelog/__snapshots__/index.spec.ts.snap b/lib/workers/pr/changelog/__snapshots__/index.spec.ts.snap index 140217746fc1baa791680ad584e96f80720fe5cf..fa7ea9e4cfcfdb6937244e304272e6e0a6cc6a11 100644 --- a/lib/workers/pr/changelog/__snapshots__/index.spec.ts.snap +++ b/lib/workers/pr/changelog/__snapshots__/index.spec.ts.snap @@ -55,7 +55,7 @@ exports[`workers/pr/changelog getChangeLogJSON filters unnecessary warns 2`] = ` Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "api.github.com", @@ -66,7 +66,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "api.github.com", @@ -77,7 +77,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "api.github.com", @@ -88,7 +88,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "api.github.com", @@ -99,7 +99,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "api.github.com", @@ -110,7 +110,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "api.github.com", @@ -121,7 +121,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "api.github.com", @@ -132,7 +132,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "api.github.com", @@ -143,7 +143,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "api.github.com", @@ -210,7 +210,7 @@ exports[`workers/pr/changelog getChangeLogJSON supports github enterprise and gi Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "github-enterprise.example.com", @@ -221,7 +221,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "github-enterprise.example.com", @@ -232,7 +232,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "github-enterprise.example.com", @@ -243,7 +243,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "github-enterprise.example.com", @@ -254,7 +254,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "github-enterprise.example.com", @@ -265,7 +265,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "github-enterprise.example.com", @@ -276,7 +276,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "github-enterprise.example.com", @@ -287,7 +287,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "github-enterprise.example.com", @@ -298,7 +298,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "github-enterprise.example.com", @@ -365,7 +365,7 @@ exports[`workers/pr/changelog getChangeLogJSON supports github enterprise and gi Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "api.github.com", @@ -376,7 +376,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "api.github.com", @@ -387,7 +387,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "api.github.com", @@ -398,7 +398,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "api.github.com", @@ -409,7 +409,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "api.github.com", @@ -420,7 +420,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "api.github.com", @@ -431,7 +431,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "api.github.com", @@ -442,7 +442,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "api.github.com", @@ -453,7 +453,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "api.github.com", @@ -520,7 +520,7 @@ exports[`workers/pr/changelog getChangeLogJSON supports github.com and github en Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "github-enterprise.example.com", @@ -531,7 +531,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "github-enterprise.example.com", @@ -542,7 +542,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "github-enterprise.example.com", @@ -553,7 +553,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "github-enterprise.example.com", @@ -564,7 +564,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "github-enterprise.example.com", @@ -575,7 +575,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "github-enterprise.example.com", @@ -586,7 +586,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "github-enterprise.example.com", @@ -597,7 +597,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "github-enterprise.example.com", @@ -608,7 +608,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "github-enterprise.example.com", @@ -730,7 +730,7 @@ exports[`workers/pr/changelog getChangeLogJSON uses GitHub tags 2`] = ` Array [ Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "api.github.com", @@ -741,7 +741,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "api.github.com", @@ -752,7 +752,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "api.github.com", @@ -763,7 +763,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "api.github.com", @@ -774,7 +774,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "api.github.com", @@ -785,7 +785,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "api.github.com", @@ -796,7 +796,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "api.github.com", @@ -807,7 +807,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "api.github.com", @@ -818,7 +818,7 @@ Array [ }, Object { "headers": Object { - "accept": "application/json", + "accept": "application/vnd.github.v3+json", "accept-encoding": "gzip, deflate", "authorization": "token abc", "host": "api.github.com",