# 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',
    }

> 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}',
    }

> relay 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},"installation":{"id":1}}',
      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',
      signature: 'sha256=ab8cde0fb84235e7c8d726d60fc5d28ed38ed5e7e6df4375b2b0dbbcd48cddd8',
    }

> app webhook payload for issues.opened

    {
      action: 'opened',
      installation: {
        id: 1,
      },
      issue: {
        active_lock_reason: null,
        assignee: null,
        assignees: [],
        author_association: 'OWNER',
        body: null,
        closed_at: null,
        comments: 0,
        comments_url: 'https://api.github.com/repos/gr2m/sandbox/issues/239/comments',
        created_at: '2022-12-03T03:25:16Z',
        events_url: 'https://api.github.com/repos/gr2m/sandbox/issues/239/events',
        html_url: 'https://github.com/gr2m/sandbox/issues/239',
        id: 1473685643,
        labels: [],
        labels_url: 'https://api.github.com/repos/gr2m/sandbox/issues/239/labels{/name}',
        locked: false,
        milestone: null,
        node_id: 'I_kwDOBiNu_s5X1qiL',
        number: 239,
        performed_via_github_app: null,
        reactions: {
          '+1': 0,
          -1: 0,
          confused: 0,
          eyes: 0,
          heart: 0,
          hooray: 0,
          laugh: 0,
          rocket: 0,
          total_count: 0,
          url: 'https://api.github.com/repos/gr2m/sandbox/issues/239/reactions',
        },
        repository_url: 'https://api.github.com/repos/gr2m/sandbox',
        state: 'open',
        state_reason: null,
        timeline_url: 'https://api.github.com/repos/gr2m/sandbox/issues/239/timeline',
        title: 'hello',
        updated_at: '2022-12-03T03:25:16Z',
        url: 'https://api.github.com/repos/gr2m/sandbox/issues/239',
        user: {
          avatar_url: 'https://avatars.githubusercontent.com/u/39992?v=4',
          events_url: 'https://api.github.com/users/gr2m/events{/privacy}',
          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}',
          gravatar_id: '',
          html_url: 'https://github.com/gr2m',
          id: 39992,
          login: 'gr2m',
          node_id: 'MDQ6VXNlcjM5OTky',
          organizations_url: 'https://api.github.com/users/gr2m/orgs',
          received_events_url: 'https://api.github.com/users/gr2m/received_events',
          repos_url: 'https://api.github.com/users/gr2m/repos',
          site_admin: true,
          starred_url: 'https://api.github.com/users/gr2m/starred{/owner}{/repo}',
          subscriptions_url: 'https://api.github.com/users/gr2m/subscriptions',
          type: 'User',
          url: 'https://api.github.com/users/gr2m',
        },
      },
      repository: {
        allow_forking: true,
        archive_url: 'https://api.github.com/repos/gr2m/sandbox/{archive_format}{/ref}',
        archived: false,
        assignees_url: 'https://api.github.com/repos/gr2m/sandbox/assignees{/user}',
        blobs_url: 'https://api.github.com/repos/gr2m/sandbox/git/blobs{/sha}',
        branches_url: 'https://api.github.com/repos/gr2m/sandbox/branches{/branch}',
        clone_url: 'https://github.com/gr2m/sandbox.git',
        collaborators_url: 'https://api.github.com/repos/gr2m/sandbox/collaborators{/collaborator}',
        comments_url: 'https://api.github.com/repos/gr2m/sandbox/comments{/number}',
        commits_url: 'https://api.github.com/repos/gr2m/sandbox/commits{/sha}',
        compare_url: 'https://api.github.com/repos/gr2m/sandbox/compare/{base}...{head}',
        contents_url: 'https://api.github.com/repos/gr2m/sandbox/contents/{+path}',
        contributors_url: 'https://api.github.com/repos/gr2m/sandbox/contributors',
        created_at: '2017-09-09T21:16:50Z',
        default_branch: 'main',
        deployments_url: 'https://api.github.com/repos/gr2m/sandbox/deployments',
        description: 'description set by settings app',
        disabled: false,
        downloads_url: 'https://api.github.com/repos/gr2m/sandbox/downloads',
        events_url: 'https://api.github.com/repos/gr2m/sandbox/events',
        fork: false,
        forks: 7,
        forks_count: 7,
        forks_url: 'https://api.github.com/repos/gr2m/sandbox/forks',
        full_name: 'gr2m/sandbox',
        git_commits_url: 'https://api.github.com/repos/gr2m/sandbox/git/commits{/sha}',
        git_refs_url: 'https://api.github.com/repos/gr2m/sandbox/git/refs{/sha}',
        git_tags_url: 'https://api.github.com/repos/gr2m/sandbox/git/tags{/sha}',
        git_url: 'git://github.com/gr2m/sandbox.git',
        has_discussions: false,
        has_downloads: true,
        has_issues: true,
        has_pages: false,
        has_projects: false,
        has_wiki: false,
        homepage: 'https://github.com/gr2m/sandbox',
        hooks_url: 'https://api.github.com/repos/gr2m/sandbox/hooks',
        html_url: 'https://github.com/gr2m/sandbox',
        id: 102985470,
        is_template: false,
        issue_comment_url: 'https://api.github.com/repos/gr2m/sandbox/issues/comments{/number}',
        issue_events_url: 'https://api.github.com/repos/gr2m/sandbox/issues/events{/number}',
        issues_url: 'https://api.github.com/repos/gr2m/sandbox/issues{/number}',
        keys_url: 'https://api.github.com/repos/gr2m/sandbox/keys{/key_id}',
        labels_url: 'https://api.github.com/repos/gr2m/sandbox/labels{/name}',
        language: 'JavaScript',
        languages_url: 'https://api.github.com/repos/gr2m/sandbox/languages',
        license: null,
        merges_url: 'https://api.github.com/repos/gr2m/sandbox/merges',
        milestones_url: 'https://api.github.com/repos/gr2m/sandbox/milestones{/number}',
        mirror_url: null,
        name: 'sandbox',
        node_id: 'MDEwOlJlcG9zaXRvcnkxMDI5ODU0NzA=',
        notifications_url: 'https://api.github.com/repos/gr2m/sandbox/notifications{?since,all,participating}',
        open_issues: 12,
        open_issues_count: 12,
        owner: {
          avatar_url: 'https://avatars.githubusercontent.com/u/39992?v=4',
          events_url: 'https://api.github.com/users/gr2m/events{/privacy}',
          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}',
          gravatar_id: '',
          html_url: 'https://github.com/gr2m',
          id: 39992,
          login: 'gr2m',
          node_id: 'MDQ6VXNlcjM5OTky',
          organizations_url: 'https://api.github.com/users/gr2m/orgs',
          received_events_url: 'https://api.github.com/users/gr2m/received_events',
          repos_url: 'https://api.github.com/users/gr2m/repos',
          site_admin: true,
          starred_url: 'https://api.github.com/users/gr2m/starred{/owner}{/repo}',
          subscriptions_url: 'https://api.github.com/users/gr2m/subscriptions',
          type: 'User',
          url: 'https://api.github.com/users/gr2m',
        },
        private: false,
        pulls_url: 'https://api.github.com/repos/gr2m/sandbox/pulls{/number}',
        pushed_at: '2022-12-03T00:10:45Z',
        releases_url: 'https://api.github.com/repos/gr2m/sandbox/releases{/id}',
        size: 3186,
        ssh_url: 'git@github.com:gr2m/sandbox.git',
        stargazers_count: 9,
        stargazers_url: 'https://api.github.com/repos/gr2m/sandbox/stargazers',
        statuses_url: 'https://api.github.com/repos/gr2m/sandbox/statuses/{sha}',
        subscribers_url: 'https://api.github.com/repos/gr2m/sandbox/subscribers',
        subscription_url: 'https://api.github.com/repos/gr2m/sandbox/subscription',
        svn_url: 'https://github.com/gr2m/sandbox',
        tags_url: 'https://api.github.com/repos/gr2m/sandbox/tags',
        teams_url: 'https://api.github.com/repos/gr2m/sandbox/teams',
        topics: [
          'sandbox',
        ],
        trees_url: 'https://api.github.com/repos/gr2m/sandbox/git/trees{/sha}',
        updated_at: '2022-11-20T13:46:41Z',
        url: 'https://api.github.com/repos/gr2m/sandbox',
        visibility: 'public',
        watchers: 9,
        watchers_count: 9,
        web_commit_signoff_required: false,
      },
      sender: {
        avatar_url: 'https://avatars.githubusercontent.com/u/39992?v=4',
        events_url: 'https://api.github.com/users/gr2m/events{/privacy}',
        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}',
        gravatar_id: '',
        html_url: 'https://github.com/gr2m',
        id: 39992,
        login: 'gr2m',
        node_id: 'MDQ6VXNlcjM5OTky',
        organizations_url: 'https://api.github.com/users/gr2m/orgs',
        received_events_url: 'https://api.github.com/users/gr2m/received_events',
        repos_url: 'https://api.github.com/users/gr2m/repos',
        site_admin: true,
        starred_url: 'https://api.github.com/users/gr2m/starred{/owner}{/repo}',
        subscriptions_url: 'https://api.github.com/users/gr2m/subscriptions',
        type: 'User',
        url: 'https://api.github.com/users/gr2m',
      },
    }

> response

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

## organization reelay

> 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',
    }

> 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}',
    }

> relay 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},"installation":{"id":1}}',
      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',
      signature: 'sha256=ab8cde0fb84235e7c8d726d60fc5d28ed38ed5e7e6df4375b2b0dbbcd48cddd8',
    }

> app webhook payload for issues.opened

    {
      action: 'opened',
      installation: {
        id: 1,
      },
      issue: {
        active_lock_reason: null,
        assignee: null,
        assignees: [],
        author_association: 'OWNER',
        body: null,
        closed_at: null,
        comments: 0,
        comments_url: 'https://api.github.com/repos/gr2m/sandbox/issues/239/comments',
        created_at: '2022-12-03T03:25:16Z',
        events_url: 'https://api.github.com/repos/gr2m/sandbox/issues/239/events',
        html_url: 'https://github.com/gr2m/sandbox/issues/239',
        id: 1473685643,
        labels: [],
        labels_url: 'https://api.github.com/repos/gr2m/sandbox/issues/239/labels{/name}',
        locked: false,
        milestone: null,
        node_id: 'I_kwDOBiNu_s5X1qiL',
        number: 239,
        performed_via_github_app: null,
        reactions: {
          '+1': 0,
          -1: 0,
          confused: 0,
          eyes: 0,
          heart: 0,
          hooray: 0,
          laugh: 0,
          rocket: 0,
          total_count: 0,
          url: 'https://api.github.com/repos/gr2m/sandbox/issues/239/reactions',
        },
        repository_url: 'https://api.github.com/repos/gr2m/sandbox',
        state: 'open',
        state_reason: null,
        timeline_url: 'https://api.github.com/repos/gr2m/sandbox/issues/239/timeline',
        title: 'hello',
        updated_at: '2022-12-03T03:25:16Z',
        url: 'https://api.github.com/repos/gr2m/sandbox/issues/239',
        user: {
          avatar_url: 'https://avatars.githubusercontent.com/u/39992?v=4',
          events_url: 'https://api.github.com/users/gr2m/events{/privacy}',
          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}',
          gravatar_id: '',
          html_url: 'https://github.com/gr2m',
          id: 39992,
          login: 'gr2m',
          node_id: 'MDQ6VXNlcjM5OTky',
          organizations_url: 'https://api.github.com/users/gr2m/orgs',
          received_events_url: 'https://api.github.com/users/gr2m/received_events',
          repos_url: 'https://api.github.com/users/gr2m/repos',
          site_admin: true,
          starred_url: 'https://api.github.com/users/gr2m/starred{/owner}{/repo}',
          subscriptions_url: 'https://api.github.com/users/gr2m/subscriptions',
          type: 'User',
          url: 'https://api.github.com/users/gr2m',
        },
      },
      repository: {
        allow_forking: true,
        archive_url: 'https://api.github.com/repos/gr2m/sandbox/{archive_format}{/ref}',
        archived: false,
        assignees_url: 'https://api.github.com/repos/gr2m/sandbox/assignees{/user}',
        blobs_url: 'https://api.github.com/repos/gr2m/sandbox/git/blobs{/sha}',
        branches_url: 'https://api.github.com/repos/gr2m/sandbox/branches{/branch}',
        clone_url: 'https://github.com/gr2m/sandbox.git',
        collaborators_url: 'https://api.github.com/repos/gr2m/sandbox/collaborators{/collaborator}',
        comments_url: 'https://api.github.com/repos/gr2m/sandbox/comments{/number}',
        commits_url: 'https://api.github.com/repos/gr2m/sandbox/commits{/sha}',
        compare_url: 'https://api.github.com/repos/gr2m/sandbox/compare/{base}...{head}',
        contents_url: 'https://api.github.com/repos/gr2m/sandbox/contents/{+path}',
        contributors_url: 'https://api.github.com/repos/gr2m/sandbox/contributors',
        created_at: '2017-09-09T21:16:50Z',
        default_branch: 'main',
        deployments_url: 'https://api.github.com/repos/gr2m/sandbox/deployments',
        description: 'description set by settings app',
        disabled: false,
        downloads_url: 'https://api.github.com/repos/gr2m/sandbox/downloads',
        events_url: 'https://api.github.com/repos/gr2m/sandbox/events',
        fork: false,
        forks: 7,
        forks_count: 7,
        forks_url: 'https://api.github.com/repos/gr2m/sandbox/forks',
        full_name: 'gr2m/sandbox',
        git_commits_url: 'https://api.github.com/repos/gr2m/sandbox/git/commits{/sha}',
        git_refs_url: 'https://api.github.com/repos/gr2m/sandbox/git/refs{/sha}',
        git_tags_url: 'https://api.github.com/repos/gr2m/sandbox/git/tags{/sha}',
        git_url: 'git://github.com/gr2m/sandbox.git',
        has_discussions: false,
        has_downloads: true,
        has_issues: true,
        has_pages: false,
        has_projects: false,
        has_wiki: false,
        homepage: 'https://github.com/gr2m/sandbox',
        hooks_url: 'https://api.github.com/repos/gr2m/sandbox/hooks',
        html_url: 'https://github.com/gr2m/sandbox',
        id: 102985470,
        is_template: false,
        issue_comment_url: 'https://api.github.com/repos/gr2m/sandbox/issues/comments{/number}',
        issue_events_url: 'https://api.github.com/repos/gr2m/sandbox/issues/events{/number}',
        issues_url: 'https://api.github.com/repos/gr2m/sandbox/issues{/number}',
        keys_url: 'https://api.github.com/repos/gr2m/sandbox/keys{/key_id}',
        labels_url: 'https://api.github.com/repos/gr2m/sandbox/labels{/name}',
        language: 'JavaScript',
        languages_url: 'https://api.github.com/repos/gr2m/sandbox/languages',
        license: null,
        merges_url: 'https://api.github.com/repos/gr2m/sandbox/merges',
        milestones_url: 'https://api.github.com/repos/gr2m/sandbox/milestones{/number}',
        mirror_url: null,
        name: 'sandbox',
        node_id: 'MDEwOlJlcG9zaXRvcnkxMDI5ODU0NzA=',
        notifications_url: 'https://api.github.com/repos/gr2m/sandbox/notifications{?since,all,participating}',
        open_issues: 12,
        open_issues_count: 12,
        owner: {
          avatar_url: 'https://avatars.githubusercontent.com/u/39992?v=4',
          events_url: 'https://api.github.com/users/gr2m/events{/privacy}',
          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}',
          gravatar_id: '',
          html_url: 'https://github.com/gr2m',
          id: 39992,
          login: 'gr2m',
          node_id: 'MDQ6VXNlcjM5OTky',
          organizations_url: 'https://api.github.com/users/gr2m/orgs',
          received_events_url: 'https://api.github.com/users/gr2m/received_events',
          repos_url: 'https://api.github.com/users/gr2m/repos',
          site_admin: true,
          starred_url: 'https://api.github.com/users/gr2m/starred{/owner}{/repo}',
          subscriptions_url: 'https://api.github.com/users/gr2m/subscriptions',
          type: 'User',
          url: 'https://api.github.com/users/gr2m',
        },
        private: false,
        pulls_url: 'https://api.github.com/repos/gr2m/sandbox/pulls{/number}',
        pushed_at: '2022-12-03T00:10:45Z',
        releases_url: 'https://api.github.com/repos/gr2m/sandbox/releases{/id}',
        size: 3186,
        ssh_url: 'git@github.com:gr2m/sandbox.git',
        stargazers_count: 9,
        stargazers_url: 'https://api.github.com/repos/gr2m/sandbox/stargazers',
        statuses_url: 'https://api.github.com/repos/gr2m/sandbox/statuses/{sha}',
        subscribers_url: 'https://api.github.com/repos/gr2m/sandbox/subscribers',
        subscription_url: 'https://api.github.com/repos/gr2m/sandbox/subscription',
        svn_url: 'https://github.com/gr2m/sandbox',
        tags_url: 'https://api.github.com/repos/gr2m/sandbox/tags',
        teams_url: 'https://api.github.com/repos/gr2m/sandbox/teams',
        topics: [
          'sandbox',
        ],
        trees_url: 'https://api.github.com/repos/gr2m/sandbox/git/trees{/sha}',
        updated_at: '2022-11-20T13:46:41Z',
        url: 'https://api.github.com/repos/gr2m/sandbox',
        visibility: 'public',
        watchers: 9,
        watchers_count: 9,
        web_commit_signoff_required: false,
      },
      sender: {
        avatar_url: 'https://avatars.githubusercontent.com/u/39992?v=4',
        events_url: 'https://api.github.com/users/gr2m/events{/privacy}',
        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}',
        gravatar_id: '',
        html_url: 'https://github.com/gr2m',
        id: 39992,
        login: 'gr2m',
        node_id: 'MDQ6VXNlcjM5OTky',
        organizations_url: 'https://api.github.com/users/gr2m/orgs',
        received_events_url: 'https://api.github.com/users/gr2m/received_events',
        repos_url: 'https://api.github.com/users/gr2m/repos',
        site_admin: true,
        starred_url: 'https://api.github.com/users/gr2m/starred{/owner}{/repo}',
        subscriptions_url: 'https://api.github.com/users/gr2m/subscriptions',
        type: 'User',
        url: 'https://api.github.com/users/gr2m',
      },
    }

> response

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