Skip to content

Conversation

@martincostello
Copy link
Contributor

Add missing App value to HookType.

Looks like it's missing from the schema, but I'm 99.9% sure that this example from my GitHub App's tests that now fail with the latest update was adapted from the real webhook payload I received when I was developing it.

It would also make sense, because the documentation mentions the app-specific property app_id.

I just created a new app to test the theory using GHES 3.5.1, and this was the payload delivered to the newly-created app.

{
  "zen": "Half measures are as bad as nothing at all.",
  "hook_id": 5692,
  "hook": {
    "type": "App",
    "id": 5692,
    "name": "web",
    "active": true,
    "events": [
      "meta"
    ],
    "config": {
      "content_type": "json",
      "insecure_ssl": "0",
      "url": "https://GHESHOSTNAME/"
    },
    "updated_at": "2022-07-07T07:51:54Z",
    "created_at": "2022-07-07T07:51:54Z",
    "app_id": 28,
    "deliveries_url": "https://GHESHOSTNAME/api/v3/app/hook/deliveries"
  }
}

Add missing `App` value to `HookType`.
wolfy1339 added a commit to octokit/webhooks that referenced this pull request Jul 7, 2022
@JamieMagee JamieMagee merged commit fcb76e9 into octokit:main Jul 7, 2022
@martincostello martincostello deleted the patch-1 branch July 7, 2022 16:14
wolfy1339 added a commit to octokit/webhooks that referenced this pull request Jul 7, 2022
…low_job` to `App` events, `merge_commit_sha` is not always `null` for `pull_request.opened` event (#660)

ref: octokit/webhooks.net#89
ref: octokit/webhooks.net@020bf18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants