Skip to content

Commit

Permalink
Update Sender Field For Code Scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
natashaU authored Feb 12, 2021
1 parent 7586a53 commit 2df6837
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]" %}`github-enterprise` {% else %}empty {% endif %}for all other actions.
#### Webhook payload example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit 2df6837

Please sign in to comment.