From eef5591b871bbb06182ff87035f3dc7868135b0b Mon Sep 17 00:00:00 2001 From: wolfy1339 Date: Thu, 28 Apr 2022 17:08:52 -0400 Subject: [PATCH] feat(GHES): new `pull_request_review_thread` event --- payload-examples/ghes-31/index.json | 32 +++++++++++++++++++++++++++++ payload-examples/ghes-32/index.json | 32 +++++++++++++++++++++++++++++ payload-examples/ghes-33/index.json | 32 +++++++++++++++++++++++++++++ 3 files changed, 96 insertions(+) diff --git a/payload-examples/ghes-31/index.json b/payload-examples/ghes-31/index.json index fe602295f..911aa8a6b 100644 --- a/payload-examples/ghes-31/index.json +++ b/payload-examples/ghes-31/index.json @@ -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.", diff --git a/payload-examples/ghes-32/index.json b/payload-examples/ghes-32/index.json index a605cb74d..b70fbccbd 100644 --- a/payload-examples/ghes-32/index.json +++ b/payload-examples/ghes-32/index.json @@ -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.", diff --git a/payload-examples/ghes-33/index.json b/payload-examples/ghes-33/index.json index 95331df3d..d395d2808 100644 --- a/payload-examples/ghes-33/index.json +++ b/payload-examples/ghes-33/index.json @@ -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.",