diff --git a/content/developers/webhooks-and-events/webhook-events-and-payloads.md b/content/developers/webhooks-and-events/webhook-events-and-payloads.md index f9c6b9b4613f..75cbee7e0b83 100644 --- a/content/developers/webhooks-and-events/webhook-events-and-payloads.md +++ b/content/developers/webhooks-and-events/webhook-events-and-payloads.md @@ -162,7 +162,7 @@ Also, the `User-Agent` for the requests will have the prefix `GitHub-Hookshot/`. {% data reusables.webhooks.repo_desc %} {% data reusables.webhooks.org_desc %} {% data reusables.webhooks.app_desc %} -`sender` | `object` | If the `action` is `reopened_by_user` or `closed_by_user`, the `sender` object will be the user that triggered the event. The `sender` object is empty for all other actions. +`sender` | `object` | If the `action` is `reopened_by_user` or `closed_by_user`, the `sender` object will be the user that triggered the event. The `sender` object is {% if currentVersion == "free-pro-team@latest" %}`github` {% elsif currentVersion ver_gt "enterprise-server@3.0" %}`github-enterprise` {% else %}empty {% endif %}for all other actions. #### Webhook payload example diff --git a/lib/webhooks/static/dotcom/code_scanning_alert.reopened.payload.json b/lib/webhooks/static/dotcom/code_scanning_alert.reopened.payload.json index 67ce09d828d4..f1de7c2a2854 100644 --- a/lib/webhooks/static/dotcom/code_scanning_alert.reopened.payload.json +++ b/lib/webhooks/static/dotcom/code_scanning_alert.reopened.payload.json @@ -136,5 +136,36 @@ "public_members_url": "https://api.github.com/orgs/Octocoders/public_members{/member}", "avatar_url": "https://avatars0.githubusercontent.com/u/6?", "description": "" - } + }, + "sender": { + "login": "github", + "id": 9919, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjk5MTk=", + "url": "https://api.github.com/orgs/github", + "repos_url": "https://api.github.com/orgs/github/repos", + "events_url": "https://api.github.com/orgs/github/events", + "hooks_url": "https://api.github.com/orgs/github/hooks", + "issues_url": "https://api.github.com/orgs/github/issues", + "members_url": "https://api.github.com/orgs/github/members{/member}", + "public_members_url": "https://api.github.com/orgs/github/public_members{/member}", + "avatar_url": "https://avatars.githubusercontent.com/u/9919?v=4", + "description": "How people build software.", + "name": "GitHub", + "company": null, + "blog": "https://github.com/about", + "location": "San Francisco, CA", + "email": null, + "twitter_username": null, + "is_verified": true, + "has_organization_projects": true, + "has_repository_projects": true, + "public_repos": 371, + "public_gists": 0, + "followers": 0, + "following": 0, + "html_url": "https://github.com/github", + "created_at": "2008-05-11T04:37:31Z", + "updated_at": "2020-09-28T06:15:10Z", + "type": "Organization" + } }