Skip to content

Commit

Permalink
feat(GHES): new pull_request_review_thread event
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 committed Apr 28, 2022
1 parent 4571273 commit eef5591
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 0 deletions.
32 changes: 32 additions & 0 deletions payload-examples/ghes-31/index.json
Expand Up @@ -1203,6 +1203,38 @@
"actions": ["created", "deleted", "edited"],
"examples": []
},
{
"name": "pull_request_review_thread",
"description": "Activity related to a comment thread on a pull request being marked as resolved or unresolved. The type of activity is specified in the `action` property of the payload object.",
"properties": {
"pull_request": {
"type": "object",
"description": "The [pull request](https://docs.github.com/en/enterprise-server@3.1/rest/reference/pulls) the thread pertains to."
},
"thread": {
"type": "object",
"description": "The thread that was affected."
},
"repository": {
"type": "object",
"description": "The [`repository`](https://docs.github.com/en/enterprise-server@3.1/rest/reference/repos#get-a-repository) where the event occurred."
},
"organization": {
"type": "object",
"description": "Webhook payloads contain the [`organization`](https://docs.github.com/en/enterprise-server@3.1/rest/reference/orgs#get-an-organization) object when the webhook is configured for an organization or the event occurs from activity in a repository owned by an organization."
},
"installation": {
"type": "object",
"description": "The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured for and sent to a GitHub App."
},
"sender": {
"type": "object",
"description": "The user that triggered the event."
}
},
"actions": ["resolved", "unresolved"],
"examples": []
},
{
"name": "push",
"description": "One or more commits are pushed to a repository branch or tag.",
Expand Down
32 changes: 32 additions & 0 deletions payload-examples/ghes-32/index.json
Expand Up @@ -1203,6 +1203,38 @@
"actions": ["created", "deleted", "edited"],
"examples": []
},
{
"name": "pull_request_review_thread",
"description": "Activity related to a comment thread on a pull request being marked as resolved or unresolved. The type of activity is specified in the `action` property of the payload object.",
"properties": {
"pull_request": {
"type": "object",
"description": "The [pull request](https://docs.github.com/en/enterprise-server@3.2/rest/reference/pulls) the thread pertains to."
},
"thread": {
"type": "object",
"description": "The thread that was affected."
},
"repository": {
"type": "object",
"description": "The [`repository`](https://docs.github.com/en/enterprise-server@3.2/rest/reference/repos#get-a-repository) where the event occurred."
},
"organization": {
"type": "object",
"description": "Webhook payloads contain the [`organization`](https://docs.github.com/en/enterprise-server@3.2/rest/reference/orgs#get-an-organization) object when the webhook is configured for an organization or the event occurs from activity in a repository owned by an organization."
},
"installation": {
"type": "object",
"description": "The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured for and sent to a GitHub App."
},
"sender": {
"type": "object",
"description": "The user that triggered the event."
}
},
"actions": ["resolved", "unresolved"],
"examples": []
},
{
"name": "push",
"description": "One or more commits are pushed to a repository branch or tag.",
Expand Down
32 changes: 32 additions & 0 deletions payload-examples/ghes-33/index.json
Expand Up @@ -1231,6 +1231,38 @@
"actions": ["created", "deleted", "edited"],
"examples": []
},
{
"name": "pull_request_review_thread",
"description": "Activity related to a comment thread on a pull request being marked as resolved or unresolved. The type of activity is specified in the `action` property of the payload object.",
"properties": {
"pull_request": {
"type": "object",
"description": "The [pull request](https://docs.github.com/en/enterprise-server@3.3/rest/reference/pulls) the thread pertains to."
},
"thread": {
"type": "object",
"description": "The thread that was affected."
},
"repository": {
"type": "object",
"description": "The [`repository`](https://docs.github.com/en/enterprise-server@3.3/rest/reference/repos#get-a-repository) where the event occurred."
},
"organization": {
"type": "object",
"description": "Webhook payloads contain the [`organization`](https://docs.github.com/en/enterprise-server@3.3/rest/reference/orgs#get-an-organization) object when the webhook is configured for an organization or the event occurs from activity in a repository owned by an organization."
},
"installation": {
"type": "object",
"description": "The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured for and sent to a GitHub App."
},
"sender": {
"type": "object",
"description": "The user that triggered the event."
}
},
"actions": ["resolved", "unresolved"],
"examples": []
},
{
"name": "push",
"description": "One or more commits are pushed to a repository branch or tag.",
Expand Down

0 comments on commit eef5591

Please sign in to comment.