From c59bca70d1f1ccfdfce60c3406098174cda919d7 Mon Sep 17 00:00:00 2001 From: pelikhan Date: Thu, 10 Mar 2022 08:27:08 -0800 Subject: [PATCH 1/5] use correct base commit --- src/compose-create-pull-request.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compose-create-pull-request.ts b/src/compose-create-pull-request.ts index 1a8f638..ab5bc06 100644 --- a/src/compose-create-pull-request.ts +++ b/src/compose-create-pull-request.ts @@ -81,7 +81,7 @@ export async function composeCreatePullRequest( const { data: [latestCommit], } = await octokit.request("GET /repos/{owner}/{repo}/commits", { - owner, + owner: state.fork, repo, sha: base, per_page: 1, From ea3d89b9a27bd7abe5c86ad197b44457096901ab Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Wed, 1 Jun 2022 14:20:42 +0000 Subject: [PATCH 2/5] added logging for own sanity --- test/create-fork.test.ts | 2 +- test/use-fork-blob.test.ts | 1 + test/use-fork.test.ts | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/test/create-fork.test.ts b/test/create-fork.test.ts index b9adc99..9ce9a97 100644 --- a/test/create-fork.test.ts +++ b/test/create-fork.test.ts @@ -20,9 +20,9 @@ test("create fork", async () => { ...params } = options; + console.log(`${options.method} ${options.url}`, params); expect(currentFixtures.request.method).toEqual(options.method); expect(currentFixtures.request.url).toEqual(options.url); - Object.keys(params).forEach((paramName) => { expect(currentFixtures.request[paramName]).toStrictEqual( params[paramName] diff --git a/test/use-fork-blob.test.ts b/test/use-fork-blob.test.ts index a5e503d..fa316be 100644 --- a/test/use-fork-blob.test.ts +++ b/test/use-fork-blob.test.ts @@ -20,6 +20,7 @@ test("use fork blob", async () => { ...params } = options; + console.log(`${options.method} ${options.url}`, params); expect(currentFixtures.request.method).toEqual(options.method); expect(currentFixtures.request.url).toEqual(options.url); diff --git a/test/use-fork.test.ts b/test/use-fork.test.ts index d27e2cf..5197203 100644 --- a/test/use-fork.test.ts +++ b/test/use-fork.test.ts @@ -20,6 +20,7 @@ test("use fork", async () => { ...params } = options; + console.log(`${options.method} ${options.url}`, params); expect(currentFixtures.request.method).toEqual(options.method); expect(currentFixtures.request.url).toEqual(options.url); From 461f24b78aa3e177bde104ea265b40c4f7ff8799 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Wed, 1 Jun 2022 15:30:17 +0000 Subject: [PATCH 3/5] flip assertion order --- test/create-fork.test.ts | 4 ++-- test/use-fork-blob.test.ts | 4 ++-- test/use-fork.test.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/create-fork.test.ts b/test/create-fork.test.ts index 9ce9a97..6525685 100644 --- a/test/create-fork.test.ts +++ b/test/create-fork.test.ts @@ -24,8 +24,8 @@ test("create fork", async () => { expect(currentFixtures.request.method).toEqual(options.method); expect(currentFixtures.request.url).toEqual(options.url); Object.keys(params).forEach((paramName) => { - expect(currentFixtures.request[paramName]).toStrictEqual( - params[paramName] + expect(params[paramName]).toStrictEqual( + currentFixtures.request[paramName] ); }); return currentFixtures.response; diff --git a/test/use-fork-blob.test.ts b/test/use-fork-blob.test.ts index fa316be..226f3dd 100644 --- a/test/use-fork-blob.test.ts +++ b/test/use-fork-blob.test.ts @@ -25,8 +25,8 @@ test("use fork blob", async () => { expect(currentFixtures.request.url).toEqual(options.url); Object.keys(params).forEach((paramName) => { - expect(currentFixtures.request[paramName]).toStrictEqual( - params[paramName] + expect(params[paramName]).toStrictEqual( + currentFixtures.request[paramName] ); }); return currentFixtures.response; diff --git a/test/use-fork.test.ts b/test/use-fork.test.ts index 5197203..326a4c7 100644 --- a/test/use-fork.test.ts +++ b/test/use-fork.test.ts @@ -25,8 +25,8 @@ test("use fork", async () => { expect(currentFixtures.request.url).toEqual(options.url); Object.keys(params).forEach((paramName) => { - expect(currentFixtures.request[paramName]).toStrictEqual( - params[paramName] + expect(params[paramName]).toStrictEqual( + currentFixtures.request[paramName] ); }); return currentFixtures.response; From ad8c05905e273c147df83654e768e880dfc42ab8 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Wed, 1 Jun 2022 15:40:55 +0000 Subject: [PATCH 4/5] patch tests --- test/fixtures/create-fork.json | 4 ++-- test/fixtures/use-fork-blob.json | 2 +- test/fixtures/use-fork.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/fixtures/create-fork.json b/test/fixtures/create-fork.json index 60a0e16..5bd2f64 100644 --- a/test/fixtures/create-fork.json +++ b/test/fixtures/create-fork.json @@ -729,14 +729,14 @@ } }, "url": "/repos/{owner}/{repo}/commits", - "owner": "gr2m", + "owner": "hipstersmoothie", "repo": "pull-request-test", "sha": "main", "per_page": 1 }, "response": { "status": 200, - "url": "https://api.github.com/repos/gr2m/pull-request-test/commits?sha=main&per_page=1", + "url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/commits?sha=main&per_page=1", "headers": { "access-control-allow-origin": "*", "access-control-expose-headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", diff --git a/test/fixtures/use-fork-blob.json b/test/fixtures/use-fork-blob.json index e3105f3..3aaaea9 100644 --- a/test/fixtures/use-fork-blob.json +++ b/test/fixtures/use-fork-blob.json @@ -481,7 +481,7 @@ } }, "url": "/repos/{owner}/{repo}/commits", - "owner": "gr2m", + "owner": "hipstersmoothie", "repo": "pull-request-test", "sha": "main", "per_page": 1 diff --git a/test/fixtures/use-fork.json b/test/fixtures/use-fork.json index 6edc40c..6992e43 100644 --- a/test/fixtures/use-fork.json +++ b/test/fixtures/use-fork.json @@ -481,7 +481,7 @@ } }, "url": "/repos/{owner}/{repo}/commits", - "owner": "gr2m", + "owner": "hipstersmoothie", "repo": "pull-request-test", "sha": "main", "per_page": 1 From c9d169517bd3e013d23856e21d45d52ac97094fc Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Wed, 1 Jun 2022 15:50:11 +0000 Subject: [PATCH 5/5] adding create-fork-blob test --- test/create-fork-blob.test.ts | 53 + test/fixtures/create-fork-blob.json | 1666 +++++++++++++++++++++++++++ test/use-fork-blob.test.ts | 1 - test/use-fork.test.ts | 1 - 4 files changed, 1719 insertions(+), 2 deletions(-) create mode 100644 test/create-fork-blob.test.ts create mode 100644 test/fixtures/create-fork-blob.json diff --git a/test/create-fork-blob.test.ts b/test/create-fork-blob.test.ts new file mode 100644 index 0000000..f982733 --- /dev/null +++ b/test/create-fork-blob.test.ts @@ -0,0 +1,53 @@ +import { Octokit as Core } from "@octokit/core"; +import { createPullRequest } from "../src"; + +const Octokit = Core.plugin(createPullRequest); + +test("create fork blob", async () => { + const fixtures = require("./fixtures/create-fork-blob"); + const octokit = new Octokit(); + + octokit.hook.wrap("request", (_, options) => { + const currentFixtures = fixtures.shift(); + const { + baseUrl, + method, + url, + request, + headers, + mediaType, + draft, + ...params + } = options; + + console.log(`${options.method} ${options.url}`, params); + expect(currentFixtures.request.method).toEqual(options.method); + expect(currentFixtures.request.url).toEqual(options.url); + Object.keys(params).forEach((paramName) => { + expect(params[paramName]).toStrictEqual( + currentFixtures.request[paramName] + ); + }); + return currentFixtures.response; + }); + + await octokit.createPullRequest({ + owner: "gr2m", + repo: "pull-request-test", + title: "One comes, one goes", + body: "because", + head: "test-branch-u7es0", + changes: { + files: { + "path/to/1x1-black.gif": { + // https://css-tricks.com/snippets/html/base64-encode-of-1x1px-transparent-gif/ + content: "R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=", + encoding: "base64", + }, + }, + commit: "why", + }, + }); + + expect(fixtures.length).toEqual(0); +}); diff --git a/test/fixtures/create-fork-blob.json b/test/fixtures/create-fork-blob.json new file mode 100644 index 0000000..5411a80 --- /dev/null +++ b/test/fixtures/create-fork-blob.json @@ -0,0 +1,1666 @@ +[ + { + "request": { + "method": "GET", + "baseUrl": "https://api.github.com", + "headers": { + "accept": "application/vnd.github.v3+json", + "user-agent": "octokit.js/16.27.0 Node.js/8.11.0 (macOS Mojave; x64)", + "authorization": "token secret" + }, + "mediaType": { + "format": "", + "previews": [] + }, + "request": { + "validate": { + "owner": { + "required": true, + "type": "string" + }, + "repo": { + "required": true, + "type": "string" + } + } + }, + "url": "/repos/{owner}/{repo}", + "owner": "gr2m", + "repo": "pull-request-test" + }, + "response": { + "status": 200, + "url": "https://api.github.com/repos/gr2m/pull-request-test", + "headers": { + "access-control-allow-origin": "*", + "access-control-expose-headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "cache-control": "private, max-age=60, s-maxage=60", + "connection": "close", + "content-encoding": "gzip", + "content-security-policy": "default-src 'none'", + "content-type": "application/json; charset=utf-8", + "date": "Fri, 24 May 2019 23:21:18 GMT", + "etag": "W/\"e3f4e20e711e2a1b0b7f4701e0702d80\"", + "last-modified": "Mon, 28 Jan 2019 17:23:18 GMT", + "referrer-policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "server": "GitHub.com", + "status": "200 OK", + "strict-transport-security": "max-age=31536000; includeSubdomains; preload", + "transfer-encoding": "chunked", + "vary": "Accept, Authorization, Cookie, X-GitHub-OTP", + "x-accepted-oauth-scopes": "repo", + "x-content-type-options": "nosniff", + "x-frame-options": "deny", + "x-github-media-type": "github.v3; format=json", + "x-github-request-id": "7933:2111:1106F0C:2285DA3:5CE87C6E", + "x-oauth-scopes": "repo, user", + "x-ratelimit-limit": "5000", + "x-ratelimit-remaining": "4996", + "x-ratelimit-reset": "1558743670", + "x-xss-protection": "1; mode=block" + }, + "data": { + "id": 160987492, + "node_id": "MDEwOlJlcG9zaXRvcnkxNjA5ODc0OTI=", + "name": "pull-request-test", + "full_name": "gr2m/pull-request-test", + "private": false, + "owner": { + "login": "gr2m", + "id": 39992, + "node_id": "MDQ6VXNlcjM5OTky", + "avatar_url": "https://avatars3.githubusercontent.com/u/39992?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gr2m", + "html_url": "https://github.com/gr2m", + "followers_url": "https://api.github.com/users/gr2m/followers", + "following_url": "https://api.github.com/users/gr2m/following{/other_user}", + "gists_url": "https://api.github.com/users/gr2m/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gr2m/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gr2m/subscriptions", + "organizations_url": "https://api.github.com/users/gr2m/orgs", + "repos_url": "https://api.github.com/users/gr2m/repos", + "events_url": "https://api.github.com/users/gr2m/events{/privacy}", + "received_events_url": "https://api.github.com/users/gr2m/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/gr2m/pull-request-test", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/gr2m/pull-request-test", + "forks_url": "https://api.github.com/repos/gr2m/pull-request-test/forks", + "keys_url": "https://api.github.com/repos/gr2m/pull-request-test/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/gr2m/pull-request-test/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/gr2m/pull-request-test/teams", + "hooks_url": "https://api.github.com/repos/gr2m/pull-request-test/hooks", + "issue_events_url": "https://api.github.com/repos/gr2m/pull-request-test/issues/events{/number}", + "events_url": "https://api.github.com/repos/gr2m/pull-request-test/events", + "assignees_url": "https://api.github.com/repos/gr2m/pull-request-test/assignees{/user}", + "branches_url": "https://api.github.com/repos/gr2m/pull-request-test/branches{/branch}", + "tags_url": "https://api.github.com/repos/gr2m/pull-request-test/tags", + "blobs_url": "https://api.github.com/repos/gr2m/pull-request-test/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/gr2m/pull-request-test/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/gr2m/pull-request-test/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/gr2m/pull-request-test/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/gr2m/pull-request-test/statuses/{sha}", + "languages_url": "https://api.github.com/repos/gr2m/pull-request-test/languages", + "stargazers_url": "https://api.github.com/repos/gr2m/pull-request-test/stargazers", + "contributors_url": "https://api.github.com/repos/gr2m/pull-request-test/contributors", + "subscribers_url": "https://api.github.com/repos/gr2m/pull-request-test/subscribers", + "subscription_url": "https://api.github.com/repos/gr2m/pull-request-test/subscription", + "commits_url": "https://api.github.com/repos/gr2m/pull-request-test/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/gr2m/pull-request-test/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/gr2m/pull-request-test/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/gr2m/pull-request-test/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/gr2m/pull-request-test/contents/{+path}", + "compare_url": "https://api.github.com/repos/gr2m/pull-request-test/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/gr2m/pull-request-test/merges", + "archive_url": "https://api.github.com/repos/gr2m/pull-request-test/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/gr2m/pull-request-test/downloads", + "issues_url": "https://api.github.com/repos/gr2m/pull-request-test/issues{/number}", + "pulls_url": "https://api.github.com/repos/gr2m/pull-request-test/pulls{/number}", + "milestones_url": "https://api.github.com/repos/gr2m/pull-request-test/milestones{/number}", + "notifications_url": "https://api.github.com/repos/gr2m/pull-request-test/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/gr2m/pull-request-test/labels{/name}", + "releases_url": "https://api.github.com/repos/gr2m/pull-request-test/releases{/id}", + "deployments_url": "https://api.github.com/repos/gr2m/pull-request-test/deployments", + "created_at": "2018-12-08T23:26:26Z", + "updated_at": "2019-01-28T17:23:18Z", + "pushed_at": "2019-04-01T04:36:32Z", + "git_url": "git://github.com/gr2m/pull-request-test.git", + "ssh_url": "git@github.com:gr2m/pull-request-test.git", + "clone_url": "https://github.com/gr2m/pull-request-test.git", + "svn_url": "https://github.com/gr2m/pull-request-test", + "homepage": null, + "size": 6, + "stargazers_count": 0, + "watchers_count": 0, + "language": null, + "has_issues": false, + "has_projects": false, + "has_downloads": true, + "has_wiki": false, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 2, + "license": null, + "forks": 0, + "open_issues": 2, + "watchers": 0, + "default_branch": "main", + "permissions": { + "admin": false, + "push": false, + "pull": true + }, + "network_count": 0, + "subscribers_count": 0 + } + } + }, + { + "request": { + "method": "GET", + "baseUrl": "https://api.github.com", + "headers": { + "accept": "application/vnd.github.v3+json", + "user-agent": "octokit.js/16.27.0 Node.js/8.11.0 (macOS Mojave; x64)", + "authorization": "token secret" + }, + "mediaType": { + "format": "", + "previews": [] + }, + "request": { + "validate": {} + }, + "url": "/user" + }, + "response": { + "status": 200, + "url": "https://api.github.com/user", + "headers": { + "access-control-allow-origin": "*", + "access-control-expose-headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "cache-control": "private, max-age=60, s-maxage=60", + "connection": "close", + "content-encoding": "gzip", + "content-security-policy": "default-src 'none'", + "content-type": "application/json; charset=utf-8", + "date": "Fri, 24 May 2019 23:21:19 GMT", + "etag": "W/\"6b72e2c98750e8b5597f1aaac559caa8\"", + "last-modified": "Sat, 18 May 2019 00:09:29 GMT", + "referrer-policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "server": "GitHub.com", + "status": "200 OK", + "strict-transport-security": "max-age=31536000; includeSubdomains; preload", + "transfer-encoding": "chunked", + "vary": "Accept, Authorization, Cookie, X-GitHub-OTP", + "x-accepted-oauth-scopes": "", + "x-content-type-options": "nosniff", + "x-frame-options": "deny", + "x-github-media-type": "github.v3; format=json", + "x-github-request-id": "39EC:6C58:120DDD3:23DD60E:5CE87C6F", + "x-oauth-scopes": "repo, user", + "x-ratelimit-limit": "5000", + "x-ratelimit-remaining": "4995", + "x-ratelimit-reset": "1558743670", + "x-xss-protection": "1; mode=block" + }, + "data": { + "login": "hipstersmoothie", + "id": 1192452, + "node_id": "MDQ6VXNlcjExOTI0NTI=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1192452?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/hipstersmoothie", + "html_url": "https://github.com/hipstersmoothie", + "followers_url": "https://api.github.com/users/hipstersmoothie/followers", + "following_url": "https://api.github.com/users/hipstersmoothie/following{/other_user}", + "gists_url": "https://api.github.com/users/hipstersmoothie/gists{/gist_id}", + "starred_url": "https://api.github.com/users/hipstersmoothie/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hipstersmoothie/subscriptions", + "organizations_url": "https://api.github.com/users/hipstersmoothie/orgs", + "repos_url": "https://api.github.com/users/hipstersmoothie/repos", + "events_url": "https://api.github.com/users/hipstersmoothie/events{/privacy}", + "received_events_url": "https://api.github.com/users/hipstersmoothie/received_events", + "type": "User", + "site_admin": false, + "name": "Andrew Lisowski", + "company": "@intuit", + "blog": "http://hipstersmoothie.com", + "location": "United States", + "email": "lisowski54@gmail.com", + "hireable": null, + "bio": "my website is terrible. ", + "public_repos": 138, + "public_gists": 1, + "followers": 49, + "following": 111, + "created_at": "2011-11-14T00:02:25Z", + "updated_at": "2019-05-18T00:09:29Z", + "private_gists": 8, + "total_private_repos": 6, + "owned_private_repos": 3, + "disk_usage": 227353, + "collaborators": 1, + "two_factor_authentication": true, + "plan": { + "name": "pro", + "space": 976562499, + "collaborators": 0, + "private_repos": 9999 + } + } + } + }, + { + "request": { + "method": "GET", + "baseUrl": "https://api.github.com", + "headers": { + "accept": "application/vnd.github.v3+json", + "user-agent": "octokit.js/16.27.0 Node.js/8.11.0 (macOS Mojave; x64)", + "authorization": "token secret" + }, + "mediaType": { + "format": "", + "previews": [] + }, + "request": { + "validate": { + "owner": { + "required": true, + "type": "string" + }, + "page": { + "type": "integer" + }, + "per_page": { + "type": "integer" + }, + "repo": { + "required": true, + "type": "string" + }, + "sort": { + "enum": [ + "newest", + "oldest", + "stargazers" + ], + "type": "string" + } + } + }, + "url": "/repos/{owner}/{repo}/forks", + "owner": "gr2m", + "repo": "pull-request-test" + }, + "response": { + "status": 200, + "url": "https://api.github.com/repos/gr2m/pull-request-test/forks", + "headers": { + "access-control-allow-origin": "*", + "access-control-expose-headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "cache-control": "private, max-age=60, s-maxage=60", + "connection": "close", + "content-length": "2", + "content-security-policy": "default-src 'none'", + "content-type": "application/json; charset=utf-8", + "date": "Fri, 24 May 2019 23:21:19 GMT", + "etag": "\"963c107f6695b945847482f3de007ddf\"", + "referrer-policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "server": "GitHub.com", + "status": "200 OK", + "strict-transport-security": "max-age=31536000; includeSubdomains; preload", + "vary": "Accept, Authorization, Cookie, X-GitHub-OTP", + "x-accepted-oauth-scopes": "", + "x-content-type-options": "nosniff", + "x-frame-options": "deny", + "x-github-media-type": "github.v3; format=json", + "x-github-request-id": "C209:4E79:D37371:1D176B6:5CE87C6F", + "x-oauth-scopes": "repo, user", + "x-ratelimit-limit": "5000", + "x-ratelimit-remaining": "4994", + "x-ratelimit-reset": "1558743670", + "x-xss-protection": "1; mode=block" + }, + "data": [] + } + }, + { + "request": { + "method": "POST", + "baseUrl": "https://api.github.com", + "headers": { + "accept": "application/vnd.github.v3+json", + "user-agent": "octokit.js/16.27.0 Node.js/8.11.0 (macOS Mojave; x64)", + "authorization": "token secret" + }, + "mediaType": { + "format": "", + "previews": [] + }, + "request": { + "validate": { + "organization": { + "type": "string" + }, + "owner": { + "required": true, + "type": "string" + }, + "repo": { + "required": true, + "type": "string" + } + } + }, + "url": "/repos/{owner}/{repo}/forks", + "owner": "gr2m", + "repo": "pull-request-test" + }, + "response": { + "status": 202, + "url": "https://api.github.com/repos/gr2m/pull-request-test/forks", + "headers": { + "access-control-allow-origin": "*", + "access-control-expose-headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "connection": "close", + "content-length": "15331", + "content-security-policy": "default-src 'none'", + "content-type": "application/json; charset=utf-8", + "date": "Fri, 24 May 2019 23:21:20 GMT", + "referrer-policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "server": "GitHub.com", + "status": "202 Accepted", + "strict-transport-security": "max-age=31536000; includeSubdomains; preload", + "x-accepted-oauth-scopes": "", + "x-content-type-options": "nosniff", + "x-frame-options": "deny", + "x-github-media-type": "github.v3; format=json", + "x-github-request-id": "6B64:0AC3:4A21BB:B82F2B:5CE87C6F", + "x-oauth-scopes": "repo, user", + "x-ratelimit-limit": "5000", + "x-ratelimit-remaining": "4993", + "x-ratelimit-reset": "1558743670", + "x-xss-protection": "1; mode=block" + }, + "data": { + "id": 188498191, + "node_id": "MDEwOlJlcG9zaXRvcnkxODg0OTgxOTE=", + "name": "pull-request-test", + "full_name": "hipstersmoothie/pull-request-test", + "private": false, + "owner": { + "login": "hipstersmoothie", + "id": 1192452, + "node_id": "MDQ6VXNlcjExOTI0NTI=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1192452?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/hipstersmoothie", + "html_url": "https://github.com/hipstersmoothie", + "followers_url": "https://api.github.com/users/hipstersmoothie/followers", + "following_url": "https://api.github.com/users/hipstersmoothie/following{/other_user}", + "gists_url": "https://api.github.com/users/hipstersmoothie/gists{/gist_id}", + "starred_url": "https://api.github.com/users/hipstersmoothie/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hipstersmoothie/subscriptions", + "organizations_url": "https://api.github.com/users/hipstersmoothie/orgs", + "repos_url": "https://api.github.com/users/hipstersmoothie/repos", + "events_url": "https://api.github.com/users/hipstersmoothie/events{/privacy}", + "received_events_url": "https://api.github.com/users/hipstersmoothie/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/hipstersmoothie/pull-request-test", + "description": null, + "fork": true, + "url": "https://api.github.com/repos/hipstersmoothie/pull-request-test", + "forks_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/forks", + "keys_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/teams", + "hooks_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/hooks", + "issue_events_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/issues/events{/number}", + "events_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/events", + "assignees_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/assignees{/user}", + "branches_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/branches{/branch}", + "tags_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/tags", + "blobs_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/languages", + "stargazers_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/stargazers", + "contributors_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/contributors", + "subscribers_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/subscribers", + "subscription_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/subscription", + "commits_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/contents/{+path}", + "compare_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/merges", + "archive_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/downloads", + "issues_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/issues{/number}", + "pulls_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/labels{/name}", + "releases_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/releases{/id}", + "deployments_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/deployments", + "created_at": "2019-05-24T23:21:19Z", + "updated_at": "2019-01-28T17:23:18Z", + "pushed_at": "2019-04-01T04:36:32Z", + "git_url": "git://github.com/hipstersmoothie/pull-request-test.git", + "ssh_url": "git@github.com:hipstersmoothie/pull-request-test.git", + "clone_url": "https://github.com/hipstersmoothie/pull-request-test.git", + "svn_url": "https://github.com/hipstersmoothie/pull-request-test", + "homepage": null, + "size": 6, + "stargazers_count": 0, + "watchers_count": 0, + "language": null, + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": false, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": null, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "main", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "parent": { + "id": 160987492, + "node_id": "MDEwOlJlcG9zaXRvcnkxNjA5ODc0OTI=", + "name": "pull-request-test", + "full_name": "gr2m/pull-request-test", + "private": false, + "owner": { + "login": "gr2m", + "id": 39992, + "node_id": "MDQ6VXNlcjM5OTky", + "avatar_url": "https://avatars3.githubusercontent.com/u/39992?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gr2m", + "html_url": "https://github.com/gr2m", + "followers_url": "https://api.github.com/users/gr2m/followers", + "following_url": "https://api.github.com/users/gr2m/following{/other_user}", + "gists_url": "https://api.github.com/users/gr2m/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gr2m/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gr2m/subscriptions", + "organizations_url": "https://api.github.com/users/gr2m/orgs", + "repos_url": "https://api.github.com/users/gr2m/repos", + "events_url": "https://api.github.com/users/gr2m/events{/privacy}", + "received_events_url": "https://api.github.com/users/gr2m/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/gr2m/pull-request-test", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/gr2m/pull-request-test", + "forks_url": "https://api.github.com/repos/gr2m/pull-request-test/forks", + "keys_url": "https://api.github.com/repos/gr2m/pull-request-test/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/gr2m/pull-request-test/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/gr2m/pull-request-test/teams", + "hooks_url": "https://api.github.com/repos/gr2m/pull-request-test/hooks", + "issue_events_url": "https://api.github.com/repos/gr2m/pull-request-test/issues/events{/number}", + "events_url": "https://api.github.com/repos/gr2m/pull-request-test/events", + "assignees_url": "https://api.github.com/repos/gr2m/pull-request-test/assignees{/user}", + "branches_url": "https://api.github.com/repos/gr2m/pull-request-test/branches{/branch}", + "tags_url": "https://api.github.com/repos/gr2m/pull-request-test/tags", + "blobs_url": "https://api.github.com/repos/gr2m/pull-request-test/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/gr2m/pull-request-test/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/gr2m/pull-request-test/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/gr2m/pull-request-test/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/gr2m/pull-request-test/statuses/{sha}", + "languages_url": "https://api.github.com/repos/gr2m/pull-request-test/languages", + "stargazers_url": "https://api.github.com/repos/gr2m/pull-request-test/stargazers", + "contributors_url": "https://api.github.com/repos/gr2m/pull-request-test/contributors", + "subscribers_url": "https://api.github.com/repos/gr2m/pull-request-test/subscribers", + "subscription_url": "https://api.github.com/repos/gr2m/pull-request-test/subscription", + "commits_url": "https://api.github.com/repos/gr2m/pull-request-test/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/gr2m/pull-request-test/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/gr2m/pull-request-test/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/gr2m/pull-request-test/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/gr2m/pull-request-test/contents/{+path}", + "compare_url": "https://api.github.com/repos/gr2m/pull-request-test/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/gr2m/pull-request-test/merges", + "archive_url": "https://api.github.com/repos/gr2m/pull-request-test/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/gr2m/pull-request-test/downloads", + "issues_url": "https://api.github.com/repos/gr2m/pull-request-test/issues{/number}", + "pulls_url": "https://api.github.com/repos/gr2m/pull-request-test/pulls{/number}", + "milestones_url": "https://api.github.com/repos/gr2m/pull-request-test/milestones{/number}", + "notifications_url": "https://api.github.com/repos/gr2m/pull-request-test/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/gr2m/pull-request-test/labels{/name}", + "releases_url": "https://api.github.com/repos/gr2m/pull-request-test/releases{/id}", + "deployments_url": "https://api.github.com/repos/gr2m/pull-request-test/deployments", + "created_at": "2018-12-08T23:26:26Z", + "updated_at": "2019-01-28T17:23:18Z", + "pushed_at": "2019-04-01T04:36:32Z", + "git_url": "git://github.com/gr2m/pull-request-test.git", + "ssh_url": "git@github.com:gr2m/pull-request-test.git", + "clone_url": "https://github.com/gr2m/pull-request-test.git", + "svn_url": "https://github.com/gr2m/pull-request-test", + "homepage": null, + "size": 6, + "stargazers_count": 0, + "watchers_count": 0, + "language": null, + "has_issues": false, + "has_projects": false, + "has_downloads": true, + "has_wiki": false, + "has_pages": false, + "forks_count": 1, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 2, + "license": null, + "forks": 1, + "open_issues": 2, + "watchers": 0, + "default_branch": "main" + }, + "source": { + "id": 160987492, + "node_id": "MDEwOlJlcG9zaXRvcnkxNjA5ODc0OTI=", + "name": "pull-request-test", + "full_name": "gr2m/pull-request-test", + "private": false, + "owner": { + "login": "gr2m", + "id": 39992, + "node_id": "MDQ6VXNlcjM5OTky", + "avatar_url": "https://avatars3.githubusercontent.com/u/39992?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gr2m", + "html_url": "https://github.com/gr2m", + "followers_url": "https://api.github.com/users/gr2m/followers", + "following_url": "https://api.github.com/users/gr2m/following{/other_user}", + "gists_url": "https://api.github.com/users/gr2m/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gr2m/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gr2m/subscriptions", + "organizations_url": "https://api.github.com/users/gr2m/orgs", + "repos_url": "https://api.github.com/users/gr2m/repos", + "events_url": "https://api.github.com/users/gr2m/events{/privacy}", + "received_events_url": "https://api.github.com/users/gr2m/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/gr2m/pull-request-test", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/gr2m/pull-request-test", + "forks_url": "https://api.github.com/repos/gr2m/pull-request-test/forks", + "keys_url": "https://api.github.com/repos/gr2m/pull-request-test/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/gr2m/pull-request-test/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/gr2m/pull-request-test/teams", + "hooks_url": "https://api.github.com/repos/gr2m/pull-request-test/hooks", + "issue_events_url": "https://api.github.com/repos/gr2m/pull-request-test/issues/events{/number}", + "events_url": "https://api.github.com/repos/gr2m/pull-request-test/events", + "assignees_url": "https://api.github.com/repos/gr2m/pull-request-test/assignees{/user}", + "branches_url": "https://api.github.com/repos/gr2m/pull-request-test/branches{/branch}", + "tags_url": "https://api.github.com/repos/gr2m/pull-request-test/tags", + "blobs_url": "https://api.github.com/repos/gr2m/pull-request-test/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/gr2m/pull-request-test/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/gr2m/pull-request-test/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/gr2m/pull-request-test/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/gr2m/pull-request-test/statuses/{sha}", + "languages_url": "https://api.github.com/repos/gr2m/pull-request-test/languages", + "stargazers_url": "https://api.github.com/repos/gr2m/pull-request-test/stargazers", + "contributors_url": "https://api.github.com/repos/gr2m/pull-request-test/contributors", + "subscribers_url": "https://api.github.com/repos/gr2m/pull-request-test/subscribers", + "subscription_url": "https://api.github.com/repos/gr2m/pull-request-test/subscription", + "commits_url": "https://api.github.com/repos/gr2m/pull-request-test/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/gr2m/pull-request-test/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/gr2m/pull-request-test/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/gr2m/pull-request-test/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/gr2m/pull-request-test/contents/{+path}", + "compare_url": "https://api.github.com/repos/gr2m/pull-request-test/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/gr2m/pull-request-test/merges", + "archive_url": "https://api.github.com/repos/gr2m/pull-request-test/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/gr2m/pull-request-test/downloads", + "issues_url": "https://api.github.com/repos/gr2m/pull-request-test/issues{/number}", + "pulls_url": "https://api.github.com/repos/gr2m/pull-request-test/pulls{/number}", + "milestones_url": "https://api.github.com/repos/gr2m/pull-request-test/milestones{/number}", + "notifications_url": "https://api.github.com/repos/gr2m/pull-request-test/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/gr2m/pull-request-test/labels{/name}", + "releases_url": "https://api.github.com/repos/gr2m/pull-request-test/releases{/id}", + "deployments_url": "https://api.github.com/repos/gr2m/pull-request-test/deployments", + "created_at": "2018-12-08T23:26:26Z", + "updated_at": "2019-01-28T17:23:18Z", + "pushed_at": "2019-04-01T04:36:32Z", + "git_url": "git://github.com/gr2m/pull-request-test.git", + "ssh_url": "git@github.com:gr2m/pull-request-test.git", + "clone_url": "https://github.com/gr2m/pull-request-test.git", + "svn_url": "https://github.com/gr2m/pull-request-test", + "homepage": null, + "size": 6, + "stargazers_count": 0, + "watchers_count": 0, + "language": null, + "has_issues": false, + "has_projects": false, + "has_downloads": true, + "has_wiki": false, + "has_pages": false, + "forks_count": 1, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 2, + "license": null, + "forks": 1, + "open_issues": 2, + "watchers": 0, + "default_branch": "main" + }, + "network_count": 1, + "subscribers_count": 1 + } + } + }, + { + "request": { + "method": "GET", + "baseUrl": "https://api.github.com", + "headers": { + "accept": "application/vnd.github.v3+json", + "user-agent": "octokit.js/16.27.0 Node.js/8.11.0 (macOS Mojave; x64)", + "authorization": "token secret" + }, + "mediaType": { + "format": "", + "previews": [] + }, + "request": { + "validate": { + "author": { + "type": "string" + }, + "owner": { + "required": true, + "type": "string" + }, + "page": { + "type": "integer" + }, + "path": { + "type": "string" + }, + "per_page": { + "type": "integer" + }, + "repo": { + "required": true, + "type": "string" + }, + "sha": { + "type": "string" + }, + "since": { + "type": "string" + }, + "until": { + "type": "string" + } + } + }, + "url": "/repos/{owner}/{repo}/commits", + "owner": "hipstersmoothie", + "repo": "pull-request-test", + "sha": "main", + "per_page": 1 + }, + "response": { + "status": 200, + "url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/commits?sha=main&per_page=1", + "headers": { + "access-control-allow-origin": "*", + "access-control-expose-headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "cache-control": "private, max-age=60, s-maxage=60", + "connection": "close", + "content-encoding": "gzip", + "content-security-policy": "default-src 'none'", + "content-type": "application/json; charset=utf-8", + "date": "Fri, 24 May 2019 23:21:20 GMT", + "etag": "W/\"cc390edfe0aaf4cbbea796380c90af50\"", + "last-modified": "Mon, 28 Jan 2019 17:23:16 GMT", + "link": "; rel=\"next\", ; rel=\"last\"", + "referrer-policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "server": "GitHub.com", + "status": "200 OK", + "strict-transport-security": "max-age=31536000; includeSubdomains; preload", + "transfer-encoding": "chunked", + "vary": "Accept, Authorization, Cookie, X-GitHub-OTP", + "x-accepted-oauth-scopes": "", + "x-content-type-options": "nosniff", + "x-frame-options": "deny", + "x-github-media-type": "github.v3; format=json", + "x-github-request-id": "830B:7425:10AB0FA:21B7652:5CE87C70", + "x-oauth-scopes": "repo, user", + "x-ratelimit-limit": "5000", + "x-ratelimit-remaining": "4992", + "x-ratelimit-reset": "1558743670", + "x-xss-protection": "1; mode=block" + }, + "data": [ + { + "sha": "3b6c2a2df60769aa026013f5bc1649cc004bd925", + "node_id": "MDY6Q29tbWl0MTYwOTg3NDkyOjNiNmMyYTJkZjYwNzY5YWEwMjYwMTNmNWJjMTY0OWNjMDA0YmQ5MjU=", + "commit": { + "author": { + "name": "Gregor Martynus", + "email": "gregor@martynus.net", + "date": "2019-01-28T17:23:16Z" + }, + "committer": { + "name": "GitHub", + "email": "noreply@github.com", + "date": "2019-01-28T17:23:16Z" + }, + "message": "Delete file3.txt", + "tree": { + "sha": "fb00ef8a5edaf5cae464878939b413004407b9e4", + "url": "https://api.github.com/repos/gr2m/pull-request-test/git/trees/fb00ef8a5edaf5cae464878939b413004407b9e4" + }, + "url": "https://api.github.com/repos/gr2m/pull-request-test/git/commits/3b6c2a2df60769aa026013f5bc1649cc004bd925", + "comment_count": 0, + "verification": { + "verified": true, + "reason": "valid", + "signature": "-----BEGIN PGP SIGNATURE-----\n\nwsBcBAABCAAQBQJcTzqECRBK7hj4Ov3rIwAAdHIIAFUzX7EFHp8G4gTI1ejBL3g0\nsDcdDhpfsS82QGCZ4N5sKifqWflZg0pU+1gEQxzaoh1uISLZ/NuFj5Jl9aw8wmrU\nQlkpwOKoLJgoCeygZAfU1hgiz4RLzeKc4J4QcEB56PpFdy10StEwVcgqvmGDxEzy\nYdYwKBLfDahIgE+AIPVWfgIGm+Ti/pZdA71BNgWa5ABEqTsBZ6Be2rBCsXV+WcV3\nZKgKo/HVfFORqzp7s4XhQpkiwsQHb68U6fDyalINTVHyKz8akXjkXQvHDKhQmxR6\nuxczLZlnlT3wsHw8qoomGid6cYiOxG9awFIVEzl4mCaunVuhUlEf0BACA9nF1rw=\n=vp8W\n-----END PGP SIGNATURE-----\n", + "payload": "tree fb00ef8a5edaf5cae464878939b413004407b9e4\nparent 520063648488c9c2eb94d820c9017fd7e8b5a1c4\nauthor Gregor Martynus 1548696196 -0800\ncommitter GitHub 1548696196 -0800\n\nDelete file3.txt" + } + }, + "url": "https://api.github.com/repos/gr2m/pull-request-test/commits/3b6c2a2df60769aa026013f5bc1649cc004bd925", + "html_url": "https://github.com/gr2m/pull-request-test/commit/3b6c2a2df60769aa026013f5bc1649cc004bd925", + "comments_url": "https://api.github.com/repos/gr2m/pull-request-test/commits/3b6c2a2df60769aa026013f5bc1649cc004bd925/comments", + "author": { + "login": "gr2m", + "id": 39992, + "node_id": "MDQ6VXNlcjM5OTky", + "avatar_url": "https://avatars3.githubusercontent.com/u/39992?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gr2m", + "html_url": "https://github.com/gr2m", + "followers_url": "https://api.github.com/users/gr2m/followers", + "following_url": "https://api.github.com/users/gr2m/following{/other_user}", + "gists_url": "https://api.github.com/users/gr2m/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gr2m/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gr2m/subscriptions", + "organizations_url": "https://api.github.com/users/gr2m/orgs", + "repos_url": "https://api.github.com/users/gr2m/repos", + "events_url": "https://api.github.com/users/gr2m/events{/privacy}", + "received_events_url": "https://api.github.com/users/gr2m/received_events", + "type": "User", + "site_admin": false + }, + "committer": { + "login": "web-flow", + "id": 19864447, + "node_id": "MDQ6VXNlcjE5ODY0NDQ3", + "avatar_url": "https://avatars3.githubusercontent.com/u/19864447?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/web-flow", + "html_url": "https://github.com/web-flow", + "followers_url": "https://api.github.com/users/web-flow/followers", + "following_url": "https://api.github.com/users/web-flow/following{/other_user}", + "gists_url": "https://api.github.com/users/web-flow/gists{/gist_id}", + "starred_url": "https://api.github.com/users/web-flow/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/web-flow/subscriptions", + "organizations_url": "https://api.github.com/users/web-flow/orgs", + "repos_url": "https://api.github.com/users/web-flow/repos", + "events_url": "https://api.github.com/users/web-flow/events{/privacy}", + "received_events_url": "https://api.github.com/users/web-flow/received_events", + "type": "User", + "site_admin": false + }, + "parents": [ + { + "sha": "520063648488c9c2eb94d820c9017fd7e8b5a1c4", + "url": "https://api.github.com/repos/gr2m/pull-request-test/commits/520063648488c9c2eb94d820c9017fd7e8b5a1c4", + "html_url": "https://github.com/gr2m/pull-request-test/commit/520063648488c9c2eb94d820c9017fd7e8b5a1c4" + } + ] + } + ] + } + }, + + { + "request": { + "method": "POST", + "baseUrl": "https://api.github.com", + "headers": { + "accept": "application/vnd.github.v3+json", + "user-agent": "octokit-core.js/2.4.1 Node.js/14.3.0 (macOS Catalina; x64)" + }, + "mediaType": { + "format": "", + "previews": [] + }, + "request": {}, + "url": "/repos/{owner}/{repo}/git/blobs", + "owner": "hipstersmoothie", + "repo": "pull-request-test", + "content": "R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=", + "encoding": "base64" + }, + "response": { + "status": 201, + "url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/git/blobs", + "headers": { + "access-control-allow-origin": "*", + "access-control-expose-headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset", + "cache-control": "private, max-age=60, s-maxage=60", + "connection": "close", + "content-length": "151", + "content-security-policy": "default-src 'none'", + "content-type": "application/json; charset=utf-8", + "date": "Mon, 01 Jun 2020 00:01:20 GMT", + "etag": "\"9df214a5c3c9d0a9d7ebfaaed9605dfa\"", + "location": "https://api.github.com/repos/hipstersmoothie/pull-request-test/git/blobs/e232d4a6f866435dacad936a0eb21386066feb41", + "referrer-policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "server": "GitHub.com", + "status": "201 Created", + "strict-transport-security": "max-age=31536000; includeSubdomains; preload", + "vary": "Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With, Accept-Encoding", + "x-accepted-oauth-scopes": "", + "x-content-type-options": "nosniff", + "x-frame-options": "deny", + "x-github-media-type": "github.v3; format=json", + "x-github-request-id": "C79F:0F35:FDBC34:1290400:5ED4454F", + "x-oauth-scopes": "repo", + "x-ratelimit-limit": "5000", + "x-ratelimit-remaining": "4975", + "x-ratelimit-reset": "1590971391", + "x-xss-protection": "1; mode=block" + }, + "data": { + "sha": "e232d4a6f866435dacad936a0eb21386066feb41", + "url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/git/blobs/e232d4a6f866435dacad936a0eb21386066feb41" + } + } + }, + { + "request": { + "method": "POST", + "baseUrl": "https://api.github.com", + "headers": { + "accept": "application/vnd.github.v3+json", + "user-agent": "octokit.js/16.27.0 Node.js/8.11.0 (macOS Mojave; x64)", + "authorization": "token secret" + }, + "mediaType": { + "format": "", + "previews": [] + }, + "request": { + "validate": { + "base_tree": { + "type": "string" + }, + "owner": { + "required": true, + "type": "string" + }, + "repo": { + "required": true, + "type": "string" + }, + "tree": { + "required": true, + "type": "object[]" + }, + "tree[].content": { + "type": "string" + }, + "tree[].mode": { + "enum": [ + "100644", + "100755", + "040000", + "160000", + "120000" + ], + "type": "string" + }, + "tree[].path": { + "type": "string" + }, + "tree[].sha": { + "type": "string" + }, + "tree[].type": { + "enum": [ + "blob", + "tree", + "commit" + ], + "type": "string" + } + } + }, + "url": "/repos/{owner}/{repo}/git/trees", + "owner": "hipstersmoothie", + "repo": "pull-request-test", + "base_tree": "fb00ef8a5edaf5cae464878939b413004407b9e4", + "tree": [ + { + "path": "path/to/1x1-black.gif", + "mode": "100644", + "sha": "e232d4a6f866435dacad936a0eb21386066feb41" + } + ] + }, + "response": { + "status": 201, + "url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/git/trees", + "headers": { + "access-control-allow-origin": "*", + "access-control-expose-headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "cache-control": "private, max-age=60, s-maxage=60", + "connection": "close", + "content-length": "648", + "content-security-policy": "default-src 'none'", + "content-type": "application/json; charset=utf-8", + "date": "Fri, 24 May 2019 23:21:21 GMT", + "etag": "\"5de971d367e80afa1fe30318cdb75c6e\"", + "location": "https://api.github.com/repos/hipstersmoothie/pull-request-test/git/trees/57359ee9bd51c9222ba2d288a8ce676169c2cdcf", + "referrer-policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "server": "GitHub.com", + "status": "201 Created", + "strict-transport-security": "max-age=31536000; includeSubdomains; preload", + "vary": "Accept, Authorization, Cookie, X-GitHub-OTP", + "x-accepted-oauth-scopes": "", + "x-content-type-options": "nosniff", + "x-frame-options": "deny", + "x-github-media-type": "github.v3; format=json", + "x-github-request-id": "0CE3:20C4:DDE542:1E9B82A:5CE87C71", + "x-oauth-scopes": "repo, user", + "x-ratelimit-limit": "5000", + "x-ratelimit-remaining": "4991", + "x-ratelimit-reset": "1558743670", + "x-xss-protection": "1; mode=block" + }, + "data": { + "sha": "57359ee9bd51c9222ba2d288a8ce676169c2cdcf", + "url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/git/trees/57359ee9bd51c9222ba2d288a8ce676169c2cdcf", + "tree": [ + { + "path": "README.md", + "mode": "100644", + "type": "blob", + "sha": "9e7a7ca5b0bcf466c6d2e8e5a8ea61e7307f62d1", + "size": 19, + "url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/git/blobs/9e7a7ca5b0bcf466c6d2e8e5a8ea61e7307f62d1" + }, + { + "path": "path", + "mode": "040000", + "type": "tree", + "sha": "a86275422c16c0c9150338319cb16e5da5046e21", + "url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/git/trees/a86275422c16c0c9150338319cb16e5da5046e21" + } + ], + "truncated": false + } + } + }, + { + "request": { + "method": "POST", + "baseUrl": "https://api.github.com", + "headers": { + "accept": "application/vnd.github.v3+json", + "user-agent": "octokit.js/16.27.0 Node.js/8.11.0 (macOS Mojave; x64)", + "authorization": "token secret" + }, + "mediaType": { + "format": "", + "previews": [] + }, + "request": { + "validate": { + "author": { + "type": "object" + }, + "author.date": { + "type": "string" + }, + "author.email": { + "type": "string" + }, + "author.name": { + "type": "string" + }, + "committer": { + "type": "object" + }, + "committer.date": { + "type": "string" + }, + "committer.email": { + "type": "string" + }, + "committer.name": { + "type": "string" + }, + "message": { + "required": true, + "type": "string" + }, + "owner": { + "required": true, + "type": "string" + }, + "parents": { + "required": true, + "type": "string[]" + }, + "repo": { + "required": true, + "type": "string" + }, + "signature": { + "type": "string" + }, + "tree": { + "required": true, + "type": "string" + } + } + }, + "url": "/repos/{owner}/{repo}/git/commits", + "owner": "hipstersmoothie", + "repo": "pull-request-test", + "message": "why", + "tree": "57359ee9bd51c9222ba2d288a8ce676169c2cdcf", + "parents": [ + "3b6c2a2df60769aa026013f5bc1649cc004bd925" + ] + }, + "response": { + "status": 201, + "url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/git/commits", + "headers": { + "access-control-allow-origin": "*", + "access-control-expose-headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "cache-control": "private, max-age=60, s-maxage=60", + "connection": "close", + "content-length": "1161", + "content-security-policy": "default-src 'none'", + "content-type": "application/json; charset=utf-8", + "date": "Fri, 24 May 2019 23:21:22 GMT", + "etag": "\"0ed8791e7b63e4ddd49222bbca0a0366\"", + "location": "https://api.github.com/repos/hipstersmoothie/pull-request-test/git/commits/74cc7a7189bf22a4acbdef90724d44715d7c2bd4", + "referrer-policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "server": "GitHub.com", + "status": "201 Created", + "strict-transport-security": "max-age=31536000; includeSubdomains; preload", + "vary": "Accept, Authorization, Cookie, X-GitHub-OTP", + "x-accepted-oauth-scopes": "", + "x-content-type-options": "nosniff", + "x-frame-options": "deny", + "x-github-media-type": "github.v3; format=json", + "x-github-request-id": "8C85:7425:10AB152:21B76F5:5CE87C71", + "x-oauth-scopes": "repo, user", + "x-ratelimit-limit": "5000", + "x-ratelimit-remaining": "4990", + "x-ratelimit-reset": "1558743670", + "x-xss-protection": "1; mode=block" + }, + "data": { + "sha": "74cc7a7189bf22a4acbdef90724d44715d7c2bd4", + "node_id": "MDY6Q29tbWl0MTg4NDk4MTkxOjc0Y2M3YTcxODliZjIyYTRhY2JkZWY5MDcyNGQ0NDcxNWQ3YzJiZDQ=", + "url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/git/commits/74cc7a7189bf22a4acbdef90724d44715d7c2bd4", + "html_url": "https://github.com/hipstersmoothie/pull-request-test/commit/74cc7a7189bf22a4acbdef90724d44715d7c2bd4", + "author": { + "name": "Andrew Lisowski", + "email": "lisowski54@gmail.com", + "date": "2019-05-24T23:21:21Z" + }, + "committer": { + "name": "Andrew Lisowski", + "email": "lisowski54@gmail.com", + "date": "2019-05-24T23:21:21Z" + }, + "tree": { + "sha": "57359ee9bd51c9222ba2d288a8ce676169c2cdcf", + "url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/git/trees/57359ee9bd51c9222ba2d288a8ce676169c2cdcf" + }, + "message": "why", + "parents": [ + { + "sha": "3b6c2a2df60769aa026013f5bc1649cc004bd925", + "url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/git/commits/3b6c2a2df60769aa026013f5bc1649cc004bd925", + "html_url": "https://github.com/hipstersmoothie/pull-request-test/commit/3b6c2a2df60769aa026013f5bc1649cc004bd925" + } + ], + "verification": { + "verified": false, + "reason": "unsigned", + "signature": null, + "payload": null + } + } + } + }, + { + "request": { + "method": "POST", + "baseUrl": "https://api.github.com", + "headers": { + "accept": "application/vnd.github.v3+json", + "user-agent": "octokit.js/16.27.0 Node.js/8.11.0 (macOS Mojave; x64)", + "authorization": "token secret" + }, + "mediaType": { + "format": "", + "previews": [] + }, + "request": { + "validate": { + "owner": { + "required": true, + "type": "string" + }, + "ref": { + "required": true, + "type": "string" + }, + "repo": { + "required": true, + "type": "string" + }, + "sha": { + "required": true, + "type": "string" + } + } + }, + "url": "/repos/{owner}/{repo}/git/refs", + "owner": "hipstersmoothie", + "repo": "pull-request-test", + "sha": "74cc7a7189bf22a4acbdef90724d44715d7c2bd4", + "ref": "refs/heads/test-branch-u7es0" + }, + "response": { + "status": 201, + "url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/git/refs", + "headers": { + "access-control-allow-origin": "*", + "access-control-expose-headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "cache-control": "private, max-age=60, s-maxage=60", + "connection": "close", + "content-length": "399", + "content-security-policy": "default-src 'none'", + "content-type": "application/json; charset=utf-8", + "date": "Fri, 24 May 2019 23:21:22 GMT", + "etag": "\"d816355f67d59ab13d3fd169780c6523\"", + "location": "https://api.github.com/repos/hipstersmoothie/pull-request-test/git/refs/heads/test-branch-u7es0", + "referrer-policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "server": "GitHub.com", + "status": "201 Created", + "strict-transport-security": "max-age=31536000; includeSubdomains; preload", + "vary": "Accept, Authorization, Cookie, X-GitHub-OTP", + "x-accepted-oauth-scopes": "repo", + "x-content-type-options": "nosniff", + "x-frame-options": "deny", + "x-github-media-type": "github.v3; format=json", + "x-github-request-id": "D625:2FAA:D19C7B:1C73748:5CE87C72", + "x-oauth-scopes": "repo, user", + "x-ratelimit-limit": "5000", + "x-ratelimit-remaining": "4989", + "x-ratelimit-reset": "1558743670", + "x-xss-protection": "1; mode=block" + }, + "data": { + "ref": "refs/heads/test-branch-u7es0", + "node_id": "MDM6UmVmMTg4NDk4MTkxOnRlc3QtYnJhbmNoLXU3ZXMw", + "url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/git/refs/heads/test-branch-u7es0", + "object": { + "sha": "74cc7a7189bf22a4acbdef90724d44715d7c2bd4", + "type": "commit", + "url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/git/commits/74cc7a7189bf22a4acbdef90724d44715d7c2bd4" + } + } + } + }, + { + "request": { + "method": "POST", + "baseUrl": "https://api.github.com", + "headers": { + "accept": "application/vnd.github.v3+json", + "user-agent": "octokit.js/16.27.0 Node.js/8.11.0 (macOS Mojave; x64)", + "authorization": "token secret" + }, + "mediaType": { + "format": "", + "previews": [] + }, + "request": { + "validate": { + "base": { + "required": true, + "type": "string" + }, + "body": { + "type": "string" + }, + "draft": { + "type": "boolean" + }, + "head": { + "required": true, + "type": "string" + }, + "maintainer_can_modify": { + "type": "boolean" + }, + "owner": { + "required": true, + "type": "string" + }, + "repo": { + "required": true, + "type": "string" + }, + "title": { + "required": true, + "type": "string" + } + } + }, + "url": "/repos/{owner}/{repo}/pulls", + "owner": "gr2m", + "repo": "pull-request-test", + "head": "hipstersmoothie:test-branch-u7es0", + "base": "main", + "title": "One comes, one goes", + "body": "because" + }, + "response": { + "status": 201, + "url": "https://api.github.com/repos/gr2m/pull-request-test/pulls", + "headers": { + "access-control-allow-origin": "*", + "access-control-expose-headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "cache-control": "private, max-age=60, s-maxage=60", + "connection": "close", + "content-length": "15651", + "content-security-policy": "default-src 'none'", + "content-type": "application/json; charset=utf-8", + "date": "Fri, 24 May 2019 23:21:23 GMT", + "etag": "\"f21531eeb1d517134c894f3380c13d29\"", + "location": "https://api.github.com/repos/gr2m/pull-request-test/pulls/28", + "referrer-policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "server": "GitHub.com", + "status": "201 Created", + "strict-transport-security": "max-age=31536000; includeSubdomains; preload", + "vary": "Accept, Authorization, Cookie, X-GitHub-OTP", + "x-accepted-oauth-scopes": "", + "x-content-type-options": "nosniff", + "x-frame-options": "deny", + "x-github-media-type": "github.v3; format=json", + "x-github-request-id": "A05C:034D:1041B60:20E5E8B:5CE87C73", + "x-oauth-scopes": "repo, user", + "x-ratelimit-limit": "5000", + "x-ratelimit-remaining": "4988", + "x-ratelimit-reset": "1558743670", + "x-xss-protection": "1; mode=block" + }, + "data": { + "url": "https://api.github.com/repos/gr2m/pull-request-test/pulls/28", + "id": 282183265, + "node_id": "MDExOlB1bGxSZXF1ZXN0MjgyMTgzMjY1", + "html_url": "https://github.com/gr2m/pull-request-test/pull/28", + "diff_url": "https://github.com/gr2m/pull-request-test/pull/28.diff", + "patch_url": "https://github.com/gr2m/pull-request-test/pull/28.patch", + "issue_url": "https://api.github.com/repos/gr2m/pull-request-test/issues/28", + "number": 28, + "state": "open", + "locked": false, + "title": "One comes, one goes", + "user": { + "login": "hipstersmoothie", + "id": 1192452, + "node_id": "MDQ6VXNlcjExOTI0NTI=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1192452?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/hipstersmoothie", + "html_url": "https://github.com/hipstersmoothie", + "followers_url": "https://api.github.com/users/hipstersmoothie/followers", + "following_url": "https://api.github.com/users/hipstersmoothie/following{/other_user}", + "gists_url": "https://api.github.com/users/hipstersmoothie/gists{/gist_id}", + "starred_url": "https://api.github.com/users/hipstersmoothie/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hipstersmoothie/subscriptions", + "organizations_url": "https://api.github.com/users/hipstersmoothie/orgs", + "repos_url": "https://api.github.com/users/hipstersmoothie/repos", + "events_url": "https://api.github.com/users/hipstersmoothie/events{/privacy}", + "received_events_url": "https://api.github.com/users/hipstersmoothie/received_events", + "type": "User", + "site_admin": false + }, + "body": "because", + "created_at": "2019-05-24T23:21:23Z", + "updated_at": "2019-05-24T23:21:23Z", + "closed_at": null, + "merged_at": null, + "merge_commit_sha": null, + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/gr2m/pull-request-test/pulls/28/commits", + "review_comments_url": "https://api.github.com/repos/gr2m/pull-request-test/pulls/28/comments", + "review_comment_url": "https://api.github.com/repos/gr2m/pull-request-test/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/gr2m/pull-request-test/issues/28/comments", + "statuses_url": "https://api.github.com/repos/gr2m/pull-request-test/statuses/74cc7a7189bf22a4acbdef90724d44715d7c2bd4", + "head": { + "label": "hipstersmoothie:test-branch-u7es0", + "ref": "test-branch-u7es0", + "sha": "74cc7a7189bf22a4acbdef90724d44715d7c2bd4", + "user": { + "login": "hipstersmoothie", + "id": 1192452, + "node_id": "MDQ6VXNlcjExOTI0NTI=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1192452?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/hipstersmoothie", + "html_url": "https://github.com/hipstersmoothie", + "followers_url": "https://api.github.com/users/hipstersmoothie/followers", + "following_url": "https://api.github.com/users/hipstersmoothie/following{/other_user}", + "gists_url": "https://api.github.com/users/hipstersmoothie/gists{/gist_id}", + "starred_url": "https://api.github.com/users/hipstersmoothie/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hipstersmoothie/subscriptions", + "organizations_url": "https://api.github.com/users/hipstersmoothie/orgs", + "repos_url": "https://api.github.com/users/hipstersmoothie/repos", + "events_url": "https://api.github.com/users/hipstersmoothie/events{/privacy}", + "received_events_url": "https://api.github.com/users/hipstersmoothie/received_events", + "type": "User", + "site_admin": false + }, + "repo": { + "id": 188498191, + "node_id": "MDEwOlJlcG9zaXRvcnkxODg0OTgxOTE=", + "name": "pull-request-test", + "full_name": "hipstersmoothie/pull-request-test", + "private": false, + "owner": { + "login": "hipstersmoothie", + "id": 1192452, + "node_id": "MDQ6VXNlcjExOTI0NTI=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1192452?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/hipstersmoothie", + "html_url": "https://github.com/hipstersmoothie", + "followers_url": "https://api.github.com/users/hipstersmoothie/followers", + "following_url": "https://api.github.com/users/hipstersmoothie/following{/other_user}", + "gists_url": "https://api.github.com/users/hipstersmoothie/gists{/gist_id}", + "starred_url": "https://api.github.com/users/hipstersmoothie/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hipstersmoothie/subscriptions", + "organizations_url": "https://api.github.com/users/hipstersmoothie/orgs", + "repos_url": "https://api.github.com/users/hipstersmoothie/repos", + "events_url": "https://api.github.com/users/hipstersmoothie/events{/privacy}", + "received_events_url": "https://api.github.com/users/hipstersmoothie/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/hipstersmoothie/pull-request-test", + "description": null, + "fork": true, + "url": "https://api.github.com/repos/hipstersmoothie/pull-request-test", + "forks_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/forks", + "keys_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/teams", + "hooks_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/hooks", + "issue_events_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/issues/events{/number}", + "events_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/events", + "assignees_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/assignees{/user}", + "branches_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/branches{/branch}", + "tags_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/tags", + "blobs_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/languages", + "stargazers_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/stargazers", + "contributors_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/contributors", + "subscribers_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/subscribers", + "subscription_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/subscription", + "commits_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/contents/{+path}", + "compare_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/merges", + "archive_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/downloads", + "issues_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/issues{/number}", + "pulls_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/labels{/name}", + "releases_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/releases{/id}", + "deployments_url": "https://api.github.com/repos/hipstersmoothie/pull-request-test/deployments", + "created_at": "2019-05-24T23:21:19Z", + "updated_at": "2019-05-24T23:21:22Z", + "pushed_at": "2019-05-24T23:21:22Z", + "git_url": "git://github.com/hipstersmoothie/pull-request-test.git", + "ssh_url": "git@github.com:hipstersmoothie/pull-request-test.git", + "clone_url": "https://github.com/hipstersmoothie/pull-request-test.git", + "svn_url": "https://github.com/hipstersmoothie/pull-request-test", + "homepage": null, + "size": 6, + "stargazers_count": 0, + "watchers_count": 0, + "language": null, + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": false, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": null, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "main" + } + }, + "base": { + "label": "gr2m:main", + "ref": "main", + "sha": "3b6c2a2df60769aa026013f5bc1649cc004bd925", + "user": { + "login": "gr2m", + "id": 39992, + "node_id": "MDQ6VXNlcjM5OTky", + "avatar_url": "https://avatars3.githubusercontent.com/u/39992?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gr2m", + "html_url": "https://github.com/gr2m", + "followers_url": "https://api.github.com/users/gr2m/followers", + "following_url": "https://api.github.com/users/gr2m/following{/other_user}", + "gists_url": "https://api.github.com/users/gr2m/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gr2m/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gr2m/subscriptions", + "organizations_url": "https://api.github.com/users/gr2m/orgs", + "repos_url": "https://api.github.com/users/gr2m/repos", + "events_url": "https://api.github.com/users/gr2m/events{/privacy}", + "received_events_url": "https://api.github.com/users/gr2m/received_events", + "type": "User", + "site_admin": false + }, + "repo": { + "id": 160987492, + "node_id": "MDEwOlJlcG9zaXRvcnkxNjA5ODc0OTI=", + "name": "pull-request-test", + "full_name": "gr2m/pull-request-test", + "private": false, + "owner": { + "login": "gr2m", + "id": 39992, + "node_id": "MDQ6VXNlcjM5OTky", + "avatar_url": "https://avatars3.githubusercontent.com/u/39992?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gr2m", + "html_url": "https://github.com/gr2m", + "followers_url": "https://api.github.com/users/gr2m/followers", + "following_url": "https://api.github.com/users/gr2m/following{/other_user}", + "gists_url": "https://api.github.com/users/gr2m/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gr2m/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gr2m/subscriptions", + "organizations_url": "https://api.github.com/users/gr2m/orgs", + "repos_url": "https://api.github.com/users/gr2m/repos", + "events_url": "https://api.github.com/users/gr2m/events{/privacy}", + "received_events_url": "https://api.github.com/users/gr2m/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/gr2m/pull-request-test", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/gr2m/pull-request-test", + "forks_url": "https://api.github.com/repos/gr2m/pull-request-test/forks", + "keys_url": "https://api.github.com/repos/gr2m/pull-request-test/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/gr2m/pull-request-test/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/gr2m/pull-request-test/teams", + "hooks_url": "https://api.github.com/repos/gr2m/pull-request-test/hooks", + "issue_events_url": "https://api.github.com/repos/gr2m/pull-request-test/issues/events{/number}", + "events_url": "https://api.github.com/repos/gr2m/pull-request-test/events", + "assignees_url": "https://api.github.com/repos/gr2m/pull-request-test/assignees{/user}", + "branches_url": "https://api.github.com/repos/gr2m/pull-request-test/branches{/branch}", + "tags_url": "https://api.github.com/repos/gr2m/pull-request-test/tags", + "blobs_url": "https://api.github.com/repos/gr2m/pull-request-test/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/gr2m/pull-request-test/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/gr2m/pull-request-test/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/gr2m/pull-request-test/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/gr2m/pull-request-test/statuses/{sha}", + "languages_url": "https://api.github.com/repos/gr2m/pull-request-test/languages", + "stargazers_url": "https://api.github.com/repos/gr2m/pull-request-test/stargazers", + "contributors_url": "https://api.github.com/repos/gr2m/pull-request-test/contributors", + "subscribers_url": "https://api.github.com/repos/gr2m/pull-request-test/subscribers", + "subscription_url": "https://api.github.com/repos/gr2m/pull-request-test/subscription", + "commits_url": "https://api.github.com/repos/gr2m/pull-request-test/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/gr2m/pull-request-test/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/gr2m/pull-request-test/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/gr2m/pull-request-test/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/gr2m/pull-request-test/contents/{+path}", + "compare_url": "https://api.github.com/repos/gr2m/pull-request-test/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/gr2m/pull-request-test/merges", + "archive_url": "https://api.github.com/repos/gr2m/pull-request-test/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/gr2m/pull-request-test/downloads", + "issues_url": "https://api.github.com/repos/gr2m/pull-request-test/issues{/number}", + "pulls_url": "https://api.github.com/repos/gr2m/pull-request-test/pulls{/number}", + "milestones_url": "https://api.github.com/repos/gr2m/pull-request-test/milestones{/number}", + "notifications_url": "https://api.github.com/repos/gr2m/pull-request-test/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/gr2m/pull-request-test/labels{/name}", + "releases_url": "https://api.github.com/repos/gr2m/pull-request-test/releases{/id}", + "deployments_url": "https://api.github.com/repos/gr2m/pull-request-test/deployments", + "created_at": "2018-12-08T23:26:26Z", + "updated_at": "2019-01-28T17:23:18Z", + "pushed_at": "2019-04-01T04:36:32Z", + "git_url": "git://github.com/gr2m/pull-request-test.git", + "ssh_url": "git@github.com:gr2m/pull-request-test.git", + "clone_url": "https://github.com/gr2m/pull-request-test.git", + "svn_url": "https://github.com/gr2m/pull-request-test", + "homepage": null, + "size": 6, + "stargazers_count": 0, + "watchers_count": 0, + "language": null, + "has_issues": false, + "has_projects": false, + "has_downloads": true, + "has_wiki": false, + "has_pages": false, + "forks_count": 1, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 3, + "license": null, + "forks": 1, + "open_issues": 3, + "watchers": 0, + "default_branch": "main" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/gr2m/pull-request-test/pulls/28" + }, + "html": { + "href": "https://github.com/gr2m/pull-request-test/pull/28" + }, + "issue": { + "href": "https://api.github.com/repos/gr2m/pull-request-test/issues/28" + }, + "comments": { + "href": "https://api.github.com/repos/gr2m/pull-request-test/issues/28/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/gr2m/pull-request-test/pulls/28/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/gr2m/pull-request-test/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/gr2m/pull-request-test/pulls/28/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/gr2m/pull-request-test/statuses/74cc7a7189bf22a4acbdef90724d44715d7c2bd4" + } + }, + "author_association": "NONE", + "merged": false, + "mergeable": null, + "rebaseable": null, + "mergeable_state": "unknown", + "merged_by": null, + "comments": 0, + "review_comments": 0, + "maintainer_can_modify": true, + "commits": 1, + "additions": 2, + "deletions": 2, + "changed_files": 2 + } + } + } +] diff --git a/test/use-fork-blob.test.ts b/test/use-fork-blob.test.ts index 226f3dd..7892a2a 100644 --- a/test/use-fork-blob.test.ts +++ b/test/use-fork-blob.test.ts @@ -20,7 +20,6 @@ test("use fork blob", async () => { ...params } = options; - console.log(`${options.method} ${options.url}`, params); expect(currentFixtures.request.method).toEqual(options.method); expect(currentFixtures.request.url).toEqual(options.url); diff --git a/test/use-fork.test.ts b/test/use-fork.test.ts index 326a4c7..f944257 100644 --- a/test/use-fork.test.ts +++ b/test/use-fork.test.ts @@ -20,7 +20,6 @@ test("use fork", async () => { ...params } = options; - console.log(`${options.method} ${options.url}`, params); expect(currentFixtures.request.method).toEqual(options.method); expect(currentFixtures.request.url).toEqual(options.url);