# Snapshot report for `test/integration.test.js`

The actual snapshot is saved in `integration.test.js.snap`.

Generated by [AVA](https://avajs.dev).

## README example

> POST /repos/{owner}/{repo}/hooks

    {
      baseUrl: 'https://api.github.com',
      config: {
        content_type: 'json',
        insecure_ssl: '0',
      },
      events: [
        'issues',
      ],
      headers: {
        accept: 'application/vnd.github.v3+json',
        'user-agent': 'test',
      },
      mediaType: {
        format: '',
        previews: [],
      },
      method: 'POST',
      name: 'cli',
      owner: 'gr2m',
      repo: 'github-webhooks-relay',
      request: {
        hook: Function bound bound register {},
      },
      url: '/repos/{owner}/{repo}/hooks',
    }

> webhook

    {
      body: '{"action":"opened","issue":{"url":"https://api.github.com/repos/gr2m/sandbox/issues/239","repository_url":"https://api.github.com/repos/gr2m/sandbox","labels_url":"https://api.github.com/repos/gr2m/sandbox/issues/239/labels{/name}","comments_url":"https://api.github.com/repos/gr2m/sandbox/issues/239/comments","events_url":"https://api.github.com/repos/gr2m/sandbox/issues/239/events","html_url":"https://github.com/gr2m/sandbox/issues/239","id":1473685643,"node_id":"I_kwDOBiNu_s5X1qiL","number":239,"title":"hello","user":{"login":"gr2m","id":39992,"node_id":"MDQ6VXNlcjM5OTky","avatar_url":"https://avatars.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":true},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2022-12-03T03:25:16Z","updated_at":"2022-12-03T03:25:16Z","closed_at":null,"author_association":"OWNER","active_lock_reason":null,"body":null,"reactions":{"url":"https://api.github.com/repos/gr2m/sandbox/issues/239/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/gr2m/sandbox/issues/239/timeline","performed_via_github_app":null,"state_reason":null},"repository":{"id":102985470,"node_id":"MDEwOlJlcG9zaXRvcnkxMDI5ODU0NzA=","name":"sandbox","full_name":"gr2m/sandbox","private":false,"owner":{"login":"gr2m","id":39992,"node_id":"MDQ6VXNlcjM5OTky","avatar_url":"https://avatars.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":true},"html_url":"https://github.com/gr2m/sandbox","description":"description set by settings app","fork":false,"url":"https://api.github.com/repos/gr2m/sandbox","forks_url":"https://api.github.com/repos/gr2m/sandbox/forks","keys_url":"https://api.github.com/repos/gr2m/sandbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gr2m/sandbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gr2m/sandbox/teams","hooks_url":"https://api.github.com/repos/gr2m/sandbox/hooks","issue_events_url":"https://api.github.com/repos/gr2m/sandbox/issues/events{/number}","events_url":"https://api.github.com/repos/gr2m/sandbox/events","assignees_url":"https://api.github.com/repos/gr2m/sandbox/assignees{/user}","branches_url":"https://api.github.com/repos/gr2m/sandbox/branches{/branch}","tags_url":"https://api.github.com/repos/gr2m/sandbox/tags","blobs_url":"https://api.github.com/repos/gr2m/sandbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gr2m/sandbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gr2m/sandbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/gr2m/sandbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gr2m/sandbox/statuses/{sha}","languages_url":"https://api.github.com/repos/gr2m/sandbox/languages","stargazers_url":"https://api.github.com/repos/gr2m/sandbox/stargazers","contributors_url":"https://api.github.com/repos/gr2m/sandbox/contributors","subscribers_url":"https://api.github.com/repos/gr2m/sandbox/subscribers","subscription_url":"https://api.github.com/repos/gr2m/sandbox/subscription","commits_url":"https://api.github.com/repos/gr2m/sandbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/gr2m/sandbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/gr2m/sandbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/gr2m/sandbox/issues/comments{/number}","contents_url":"https://api.github.com/repos/gr2m/sandbox/contents/{+path}","compare_url":"https://api.github.com/repos/gr2m/sandbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gr2m/sandbox/merges","archive_url":"https://api.github.com/repos/gr2m/sandbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gr2m/sandbox/downloads","issues_url":"https://api.github.com/repos/gr2m/sandbox/issues{/number}","pulls_url":"https://api.github.com/repos/gr2m/sandbox/pulls{/number}","milestones_url":"https://api.github.com/repos/gr2m/sandbox/milestones{/number}","notifications_url":"https://api.github.com/repos/gr2m/sandbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gr2m/sandbox/labels{/name}","releases_url":"https://api.github.com/repos/gr2m/sandbox/releases{/id}","deployments_url":"https://api.github.com/repos/gr2m/sandbox/deployments","created_at":"2017-09-09T21:16:50Z","updated_at":"2022-11-20T13:46:41Z","pushed_at":"2022-12-03T00:10:45Z","git_url":"git://github.com/gr2m/sandbox.git","ssh_url":"git@github.com:gr2m/sandbox.git","clone_url":"https://github.com/gr2m/sandbox.git","svn_url":"https://github.com/gr2m/sandbox","homepage":"https://github.com/gr2m/sandbox","size":3186,"stargazers_count":9,"watchers_count":9,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"has_discussions":false,"forks_count":7,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":12,"license":null,"allow_forking":true,"is_template":false,"web_commit_signoff_required":false,"topics":["sandbox"],"visibility":"public","forks":7,"open_issues":12,"watchers":9,"default_branch":"main"},"sender":{"login":"gr2m","id":39992,"node_id":"MDQ6VXNlcjM5OTky","avatar_url":"https://avatars.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":true}}',
      headers: {
        accept: '*/*',
        'accept-encoding': 'gzip',
        connection: 'close',
        'content-length': '7455',
        'content-type': 'application/json',
        'ot-tracer-sampled': 'true',
        'ot-tracer-spanid': 'b0bf7f194d20f95d',
        'ot-tracer-traceid': '650d9e8d297ac9c6',
        'request-hmac': '1670037916.4d3d72eb6ce35b402712db0070fc7367b2537d4dd9292c48c22fe1a14538bd53',
        'user-agent': 'GitHub-Hookshot/35a454f',
        'x-as': '',
        'x-country': '',
        'x-forwarded-for': '10.56.105.71',
        'x-forwarded-proto': 'https',
        'x-github-delivery': '1b15a400-72ba-11ed-9d3d-080a77593b44',
        'x-github-event': 'issues',
        'x-github-hook-id': '390939225',
        'x-github-hook-installation-target-id': '102985470',
        'x-github-hook-installation-target-type': 'repository',
        'x-github-request-id': '2438:23D7:56198:4318A1:638AC19C',
        'x-glb-edge-region': 'iad',
        'x-glb-edge-site': 'ash1-iad',
        'x-glb-via': 'hostname=glb-proxy-ae6b40d.ash1-iad.github.net site=ash1-iad region=iad service=kube-public t=1670037916.822',
        'x-haproxy-ssl-fc-cipher': 'TLS_AES_128_GCM_SHA256',
        'x-haproxy-ssl-fc-protocol': 'TLSv1.3',
        'x-haproxy-ssl-fc-use-keysize': '128',
        'x-real-ip': '10.56.105.71',
        'x-region': '',
        'x-request-start': 't=1670037916824124',
      },
      id: '1b15a400-72ba-11ed-9d3d-080a77593b44',
      name: 'issues',
    }

> PATCH /repos/{owner}/{repo}/hooks/{hook_id}

    {
      active: true,
      baseUrl: 'https://api.github.com',
      headers: {
        accept: 'application/vnd.github.v3+json',
        'user-agent': 'test',
      },
      hook_id: 1,
      mediaType: {
        format: '',
        previews: [],
      },
      method: 'PATCH',
      owner: 'gr2m',
      repo: 'github-webhooks-relay',
      request: {
        hook: Function bound bound register {},
      },
      url: '/repos/{owner}/{repo}/hooks/{hook_id}',
    }

> response

    '{"Status":202,"Header":{},"Body":"b2s="}'

## with secret

> POST /repos/{owner}/{repo}/hooks

    {
      baseUrl: 'https://api.github.com',
      config: {
        content_type: 'json',
        insecure_ssl: '0',
      },
      events: [
        'issues',
      ],
      headers: {
        accept: 'application/vnd.github.v3+json',
        'user-agent': 'test',
      },
      mediaType: {
        format: '',
        previews: [],
      },
      method: 'POST',
      name: 'cli',
      owner: 'gr2m',
      repo: 'github-webhooks-relay',
      request: {
        hook: Function bound bound register {},
      },
      url: '/repos/{owner}/{repo}/hooks',
    }

> webhook

    {
      body: '{"action":"opened","issue":{"url":"https://api.github.com/repos/gr2m/sandbox/issues/239","repository_url":"https://api.github.com/repos/gr2m/sandbox","labels_url":"https://api.github.com/repos/gr2m/sandbox/issues/239/labels{/name}","comments_url":"https://api.github.com/repos/gr2m/sandbox/issues/239/comments","events_url":"https://api.github.com/repos/gr2m/sandbox/issues/239/events","html_url":"https://github.com/gr2m/sandbox/issues/239","id":1473685643,"node_id":"I_kwDOBiNu_s5X1qiL","number":239,"title":"hello","user":{"login":"gr2m","id":39992,"node_id":"MDQ6VXNlcjM5OTky","avatar_url":"https://avatars.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":true},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2022-12-03T03:25:16Z","updated_at":"2022-12-03T03:25:16Z","closed_at":null,"author_association":"OWNER","active_lock_reason":null,"body":null,"reactions":{"url":"https://api.github.com/repos/gr2m/sandbox/issues/239/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/gr2m/sandbox/issues/239/timeline","performed_via_github_app":null,"state_reason":null},"repository":{"id":102985470,"node_id":"MDEwOlJlcG9zaXRvcnkxMDI5ODU0NzA=","name":"sandbox","full_name":"gr2m/sandbox","private":false,"owner":{"login":"gr2m","id":39992,"node_id":"MDQ6VXNlcjM5OTky","avatar_url":"https://avatars.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":true},"html_url":"https://github.com/gr2m/sandbox","description":"description set by settings app","fork":false,"url":"https://api.github.com/repos/gr2m/sandbox","forks_url":"https://api.github.com/repos/gr2m/sandbox/forks","keys_url":"https://api.github.com/repos/gr2m/sandbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gr2m/sandbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gr2m/sandbox/teams","hooks_url":"https://api.github.com/repos/gr2m/sandbox/hooks","issue_events_url":"https://api.github.com/repos/gr2m/sandbox/issues/events{/number}","events_url":"https://api.github.com/repos/gr2m/sandbox/events","assignees_url":"https://api.github.com/repos/gr2m/sandbox/assignees{/user}","branches_url":"https://api.github.com/repos/gr2m/sandbox/branches{/branch}","tags_url":"https://api.github.com/repos/gr2m/sandbox/tags","blobs_url":"https://api.github.com/repos/gr2m/sandbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gr2m/sandbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gr2m/sandbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/gr2m/sandbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gr2m/sandbox/statuses/{sha}","languages_url":"https://api.github.com/repos/gr2m/sandbox/languages","stargazers_url":"https://api.github.com/repos/gr2m/sandbox/stargazers","contributors_url":"https://api.github.com/repos/gr2m/sandbox/contributors","subscribers_url":"https://api.github.com/repos/gr2m/sandbox/subscribers","subscription_url":"https://api.github.com/repos/gr2m/sandbox/subscription","commits_url":"https://api.github.com/repos/gr2m/sandbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/gr2m/sandbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/gr2m/sandbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/gr2m/sandbox/issues/comments{/number}","contents_url":"https://api.github.com/repos/gr2m/sandbox/contents/{+path}","compare_url":"https://api.github.com/repos/gr2m/sandbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gr2m/sandbox/merges","archive_url":"https://api.github.com/repos/gr2m/sandbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gr2m/sandbox/downloads","issues_url":"https://api.github.com/repos/gr2m/sandbox/issues{/number}","pulls_url":"https://api.github.com/repos/gr2m/sandbox/pulls{/number}","milestones_url":"https://api.github.com/repos/gr2m/sandbox/milestones{/number}","notifications_url":"https://api.github.com/repos/gr2m/sandbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gr2m/sandbox/labels{/name}","releases_url":"https://api.github.com/repos/gr2m/sandbox/releases{/id}","deployments_url":"https://api.github.com/repos/gr2m/sandbox/deployments","created_at":"2017-09-09T21:16:50Z","updated_at":"2022-11-20T13:46:41Z","pushed_at":"2022-12-03T00:10:45Z","git_url":"git://github.com/gr2m/sandbox.git","ssh_url":"git@github.com:gr2m/sandbox.git","clone_url":"https://github.com/gr2m/sandbox.git","svn_url":"https://github.com/gr2m/sandbox","homepage":"https://github.com/gr2m/sandbox","size":3186,"stargazers_count":9,"watchers_count":9,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"has_discussions":false,"forks_count":7,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":12,"license":null,"allow_forking":true,"is_template":false,"web_commit_signoff_required":false,"topics":["sandbox"],"visibility":"public","forks":7,"open_issues":12,"watchers":9,"default_branch":"main"},"sender":{"login":"gr2m","id":39992,"node_id":"MDQ6VXNlcjM5OTky","avatar_url":"https://avatars.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":true}}',
      headers: {
        accept: '*/*',
        'accept-encoding': 'gzip',
        connection: 'close',
        'content-length': '7455',
        'content-type': 'application/json',
        'ot-tracer-sampled': 'true',
        'ot-tracer-spanid': 'b0bf7f194d20f95d',
        'ot-tracer-traceid': '650d9e8d297ac9c6',
        'request-hmac': '1670037916.4d3d72eb6ce35b402712db0070fc7367b2537d4dd9292c48c22fe1a14538bd53',
        'user-agent': 'GitHub-Hookshot/35a454f',
        'x-as': '',
        'x-country': '',
        'x-forwarded-for': '10.56.105.71',
        'x-forwarded-proto': 'https',
        'x-github-delivery': '1b15a400-72ba-11ed-9d3d-080a77593b44',
        'x-github-event': 'issues',
        'x-github-hook-id': '390939225',
        'x-github-hook-installation-target-id': '102985470',
        'x-github-hook-installation-target-type': 'repository',
        'x-github-request-id': '2438:23D7:56198:4318A1:638AC19C',
        'x-glb-edge-region': 'iad',
        'x-glb-edge-site': 'ash1-iad',
        'x-glb-via': 'hostname=glb-proxy-ae6b40d.ash1-iad.github.net site=ash1-iad region=iad service=kube-public t=1670037916.822',
        'x-haproxy-ssl-fc-cipher': 'TLS_AES_128_GCM_SHA256',
        'x-haproxy-ssl-fc-protocol': 'TLSv1.3',
        'x-haproxy-ssl-fc-use-keysize': '128',
        'x-hub-signature-256': undefined,
        'x-real-ip': '10.56.105.71',
        'x-region': '',
        'x-request-start': 't=1670037916824124',
      },
      id: '1b15a400-72ba-11ed-9d3d-080a77593b44',
      name: 'issues',
    }

> PATCH /repos/{owner}/{repo}/hooks/{hook_id}

    {
      active: true,
      baseUrl: 'https://api.github.com',
      headers: {
        accept: 'application/vnd.github.v3+json',
        'user-agent': 'test',
      },
      hook_id: 1,
      mediaType: {
        format: '',
        previews: [],
      },
      method: 'PATCH',
      owner: 'gr2m',
      repo: 'github-webhooks-relay',
      request: {
        hook: Function bound bound register {},
      },
      url: '/repos/{owner}/{repo}/hooks/{hook_id}',
    }

> response

    '{"Status":202,"Header":{},"Body":"b2s="}'

## org webhook

> POST /orgs/{org}/hooks

    {
      baseUrl: 'https://api.github.com',
      config: {
        content_type: 'json',
        insecure_ssl: '0',
      },
      events: [
        'issues',
      ],
      headers: {
        accept: 'application/vnd.github.v3+json',
        'user-agent': 'test',
      },
      mediaType: {
        format: '',
        previews: [],
      },
      method: 'POST',
      name: 'cli',
      org: 'gr2m-sandbox',
      request: {
        hook: Function bound bound register {},
      },
      url: '/orgs/{org}/hooks',
    }

> webhook

    {
      body: '{"action":"opened","issue":{"url":"https://api.github.com/repos/gr2m/sandbox/issues/239","repository_url":"https://api.github.com/repos/gr2m/sandbox","labels_url":"https://api.github.com/repos/gr2m/sandbox/issues/239/labels{/name}","comments_url":"https://api.github.com/repos/gr2m/sandbox/issues/239/comments","events_url":"https://api.github.com/repos/gr2m/sandbox/issues/239/events","html_url":"https://github.com/gr2m/sandbox/issues/239","id":1473685643,"node_id":"I_kwDOBiNu_s5X1qiL","number":239,"title":"hello","user":{"login":"gr2m","id":39992,"node_id":"MDQ6VXNlcjM5OTky","avatar_url":"https://avatars.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":true},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2022-12-03T03:25:16Z","updated_at":"2022-12-03T03:25:16Z","closed_at":null,"author_association":"OWNER","active_lock_reason":null,"body":null,"reactions":{"url":"https://api.github.com/repos/gr2m/sandbox/issues/239/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/gr2m/sandbox/issues/239/timeline","performed_via_github_app":null,"state_reason":null},"repository":{"id":102985470,"node_id":"MDEwOlJlcG9zaXRvcnkxMDI5ODU0NzA=","name":"sandbox","full_name":"gr2m/sandbox","private":false,"owner":{"login":"gr2m","id":39992,"node_id":"MDQ6VXNlcjM5OTky","avatar_url":"https://avatars.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":true},"html_url":"https://github.com/gr2m/sandbox","description":"description set by settings app","fork":false,"url":"https://api.github.com/repos/gr2m/sandbox","forks_url":"https://api.github.com/repos/gr2m/sandbox/forks","keys_url":"https://api.github.com/repos/gr2m/sandbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gr2m/sandbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gr2m/sandbox/teams","hooks_url":"https://api.github.com/repos/gr2m/sandbox/hooks","issue_events_url":"https://api.github.com/repos/gr2m/sandbox/issues/events{/number}","events_url":"https://api.github.com/repos/gr2m/sandbox/events","assignees_url":"https://api.github.com/repos/gr2m/sandbox/assignees{/user}","branches_url":"https://api.github.com/repos/gr2m/sandbox/branches{/branch}","tags_url":"https://api.github.com/repos/gr2m/sandbox/tags","blobs_url":"https://api.github.com/repos/gr2m/sandbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gr2m/sandbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gr2m/sandbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/gr2m/sandbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gr2m/sandbox/statuses/{sha}","languages_url":"https://api.github.com/repos/gr2m/sandbox/languages","stargazers_url":"https://api.github.com/repos/gr2m/sandbox/stargazers","contributors_url":"https://api.github.com/repos/gr2m/sandbox/contributors","subscribers_url":"https://api.github.com/repos/gr2m/sandbox/subscribers","subscription_url":"https://api.github.com/repos/gr2m/sandbox/subscription","commits_url":"https://api.github.com/repos/gr2m/sandbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/gr2m/sandbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/gr2m/sandbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/gr2m/sandbox/issues/comments{/number}","contents_url":"https://api.github.com/repos/gr2m/sandbox/contents/{+path}","compare_url":"https://api.github.com/repos/gr2m/sandbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gr2m/sandbox/merges","archive_url":"https://api.github.com/repos/gr2m/sandbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gr2m/sandbox/downloads","issues_url":"https://api.github.com/repos/gr2m/sandbox/issues{/number}","pulls_url":"https://api.github.com/repos/gr2m/sandbox/pulls{/number}","milestones_url":"https://api.github.com/repos/gr2m/sandbox/milestones{/number}","notifications_url":"https://api.github.com/repos/gr2m/sandbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gr2m/sandbox/labels{/name}","releases_url":"https://api.github.com/repos/gr2m/sandbox/releases{/id}","deployments_url":"https://api.github.com/repos/gr2m/sandbox/deployments","created_at":"2017-09-09T21:16:50Z","updated_at":"2022-11-20T13:46:41Z","pushed_at":"2022-12-03T00:10:45Z","git_url":"git://github.com/gr2m/sandbox.git","ssh_url":"git@github.com:gr2m/sandbox.git","clone_url":"https://github.com/gr2m/sandbox.git","svn_url":"https://github.com/gr2m/sandbox","homepage":"https://github.com/gr2m/sandbox","size":3186,"stargazers_count":9,"watchers_count":9,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"has_discussions":false,"forks_count":7,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":12,"license":null,"allow_forking":true,"is_template":false,"web_commit_signoff_required":false,"topics":["sandbox"],"visibility":"public","forks":7,"open_issues":12,"watchers":9,"default_branch":"main"},"sender":{"login":"gr2m","id":39992,"node_id":"MDQ6VXNlcjM5OTky","avatar_url":"https://avatars.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":true}}',
      headers: {
        accept: '*/*',
        'accept-encoding': 'gzip',
        connection: 'close',
        'content-length': '7455',
        'content-type': 'application/json',
        'ot-tracer-sampled': 'true',
        'ot-tracer-spanid': 'b0bf7f194d20f95d',
        'ot-tracer-traceid': '650d9e8d297ac9c6',
        'request-hmac': '1670037916.4d3d72eb6ce35b402712db0070fc7367b2537d4dd9292c48c22fe1a14538bd53',
        'user-agent': 'GitHub-Hookshot/35a454f',
        'x-as': '',
        'x-country': '',
        'x-forwarded-for': '10.56.105.71',
        'x-forwarded-proto': 'https',
        'x-github-delivery': '1b15a400-72ba-11ed-9d3d-080a77593b44',
        'x-github-event': 'issues',
        'x-github-hook-id': '390939225',
        'x-github-hook-installation-target-id': '102985470',
        'x-github-hook-installation-target-type': 'repository',
        'x-github-request-id': '2438:23D7:56198:4318A1:638AC19C',
        'x-glb-edge-region': 'iad',
        'x-glb-edge-site': 'ash1-iad',
        'x-glb-via': 'hostname=glb-proxy-ae6b40d.ash1-iad.github.net site=ash1-iad region=iad service=kube-public t=1670037916.822',
        'x-haproxy-ssl-fc-cipher': 'TLS_AES_128_GCM_SHA256',
        'x-haproxy-ssl-fc-protocol': 'TLSv1.3',
        'x-haproxy-ssl-fc-use-keysize': '128',
        'x-hub-signature-256': undefined,
        'x-real-ip': '10.56.105.71',
        'x-region': '',
        'x-request-start': 't=1670037916824124',
      },
      id: '1b15a400-72ba-11ed-9d3d-080a77593b44',
      name: 'issues',
    }

> PATCH /orgs/{org}/hooks/{hook_id}

    {
      active: true,
      baseUrl: 'https://api.github.com',
      headers: {
        accept: 'application/vnd.github.v3+json',
        'user-agent': 'test',
      },
      hook_id: 1,
      mediaType: {
        format: '',
        previews: [],
      },
      method: 'PATCH',
      org: 'gr2m-sandbox',
      request: {
        hook: Function bound bound register {},
      },
      url: '/orgs/{org}/hooks/{hook_id}',
    }

> response

    '{"Status":202,"Header":{},"Body":"b2s="}'
