Skip to content

Commit b2c0b80

Browse files
authored
Merge pull request github#17205 from github/repo-sync
repo sync
2 parents 98f1f28 + d9b5227 commit b2c0b80

File tree

8 files changed

+589
-12
lines changed

8 files changed

+589
-12
lines changed

content/developers/apps/building-github-apps/creating-a-github-app-using-url-parameters.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ Webhook event name | Required permission | Description
122122
[`pull_request`](/webhooks/event-payloads/#pull_request) | `pull_requests` | {% data reusables.webhooks.pull_request_short_desc %}
123123
[`pull_request_review`](/webhooks/event-payloads/#pull_request_review) | `pull_request` | {% data reusables.webhooks.pull_request_review_short_desc %}
124124
[`pull_request_review_comment`](/webhooks/event-payloads/#pull_request_review_comment) | `pull_request` | {% data reusables.webhooks.pull_request_review_comment_short_desc %}
125+
[`pull_request_review_thread`](/webhooks/event-payloads/#pull_request_review_thread) | `pull_request` | {% data reusables.webhooks.pull_request_review_thread_short_desc %}
125126
[`push`](/webhooks/event-payloads/#push) | `contents` | {% data reusables.webhooks.push_short_desc %}
126127
[`release`](/webhooks/event-payloads/#release) | `contents` | {% data reusables.webhooks.release_short_desc %}
127128
[`repository`](/webhooks/event-payloads/#repository) |`metadata` | {% data reusables.webhooks.repository_short_desc %}{% ifversion fpt or ghec %}

content/developers/webhooks-and-events/events/github-event-types.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,16 @@ Key | Type | Description
207207
{% data reusables.webhooks.pull_request_review_comment_event_api_properties %}
208208
{% data reusables.webhooks.pull_request_review_comment_properties %}
209209

210+
## PullRequestReviewThreadEvent
211+
212+
{% data reusables.webhooks.pull_request_review_thread_short_desc %}
213+
214+
{% data reusables.webhooks.events_api_payload %}
215+
216+
### Event `payload` object
217+
218+
{% data reusables.webhooks.pull_request_thread_properties %}
219+
210220
## PushEvent
211221

212222
{% data reusables.webhooks.push_short_desc %}

content/developers/webhooks-and-events/webhooks/webhook-events-and-payloads.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1060,6 +1060,28 @@ Deliveries for `review_requested` and `review_request_removed` events will have
10601060
10611061
{{ webhookPayloadsForCurrentVersion.pull_request_review_comment.created }}
10621062
1063+
## pull_request_review_thread
1064+
1065+
{% data reusables.webhooks.pull_request_review_thread_short_desc %}
1066+
1067+
### Availability
1068+
1069+
- Repository webhooks
1070+
- Organization webhooks
1071+
- {% data variables.product.prodname_github_apps %} with the `pull_requests` permission
1072+
1073+
### Webhook payload object
1074+
1075+
{% data reusables.webhooks.pull_request_thread_properties %}
1076+
{% data reusables.webhooks.repo_desc %}
1077+
{% data reusables.webhooks.org_desc %}
1078+
{% data reusables.webhooks.app_desc %}
1079+
{% data reusables.webhooks.sender_desc %}
1080+
1081+
### Webhook payload example
1082+
1083+
{{ webhookPayloadsForCurrentVersion.pull_request_review_thread.resolved }}
1084+
10631085
## push
10641086
10651087
{% data reusables.webhooks.push_short_desc %}
@@ -1161,7 +1183,7 @@ This event occurs when a {% data variables.product.prodname_github_app %} sends
11611183
11621184
Key | Type | Description
11631185
----|------|-------------
1164-
`action` |`string` | The action that was performed. This can be one of:<ul><li>`created` - A repository is created.</li><li>`deleted` - A repository is deleted.</li><li>`archived` - A repository is archived.</li><li>`unarchived` - A repository is unarchived.</li>{% ifversion ghes or ghae %}<li>`anonymous_access_enabled` - A repository is [enabled for anonymous Git access](/rest/overview/api-previews#anonymous-git-access-to-repositories), `anonymous_access_disabled` - A repository is [disabled for anonymous Git access](/rest/overview/api-previews#anonymous-git-access-to-repositories)</li>{% endif %}<li>`edited` - A repository's information is edited.</li><li>`renamed` - A repository is renamed.</li><li>`transferred` - A repository is transferred.</li><li>`publicized` - A repository is made public.</li><li> `privatized` - A repository is made private.</li></ul>
1186+
`action` |`string` | The action that was performed. This can be one of:<ul><li>`created` - A repository is created.</li><li>`deleted` - A repository is deleted.</li><li>`archived` - A repository is archived.</li><li>`unarchived` - A repository is unarchived.</li>{% ifversion ghes or ghae %}<li>`anonymous_access_enabled` - A repository is [enabled for anonymous Git access](/admin/policies/enforcing-policies-for-your-enterprise/enforcing-repository-management-policies-in-your-enterprise), `anonymous_access_disabled` - A repository is [disabled for anonymous Git access](/admin/policies/enforcing-policies-for-your-enterprise/enforcing-repository-management-policies-in-your-enterprise)</li>{% endif %}<li>`edited` - A repository's information is edited.</li><li>`renamed` - A repository is renamed.</li><li>`transferred` - A repository is transferred.</li><li>`publicized` - A repository is made public.</li><li> `privatized` - A repository is made private.</li></ul>
11651187
{% data reusables.webhooks.repo_desc %}
11661188
{% data reusables.webhooks.org_desc %}
11671189
{% data reusables.webhooks.app_desc %}

content/rest/overview/api-previews.md

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ intro: You can use API previews to try out new features and provide feedback bef
44
redirect_from:
55
- /v3/previews
66
versions:
7-
ghes: '*'
7+
ghes: '<3.4'
88
ghae: '*'
99
topics:
1010
- API
@@ -51,15 +51,6 @@ Get a [list of events](/rest/reference/issues#timeline) for an issue or pull req
5151

5252
{% endif %}
5353

54-
{% ifversion ghes %}
55-
## Pre-receive environments
56-
57-
Create, list, update, and delete environments for pre-receive hooks.
58-
59-
**Custom media type:** `eye-scream-preview`
60-
**Announced:** [2015-07-29](/rest/reference/enterprise-admin#pre-receive-environments)
61-
{% endif %}
62-
6354
{% ifversion ghes < 3.3 %}
6455
## Projects
6556

@@ -97,7 +88,7 @@ View all [codes of conduct](/rest/reference/codes-of-conduct) or get which code
9788

9889
{% endif %}
9990

100-
{% ifversion ghae or ghes %}
91+
{% ifversion ghes < 3.3 %}
10192

10293
## Global webhooks
10394

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Activity related to a comment thread on a pull request being marked as resolved or unresolved. {% data reusables.webhooks.action_type_desc %}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Key | Type | Description
2+
----|------|------------
3+
`action` | `string` | The action that was performed. Can be one of:<ul><li>`resolved` - A comment thread on a pull request was marked as resolved.</li><li>`unresolved` - A previously resolved comment thread on a pull request was marked as unresolved.</li></ul>
4+
`pull_request` | `object` | The [pull request](/rest/reference/pulls) the thread pertains to.
5+
`thread` | `object` | The thread that was affected.

lib/redirects/static/redirect-exceptions.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,3 +514,8 @@
514514

515515
/enterprise-cloud@latest/rest/reference/secret-scanning
516516
- /rest/reference/secret-scanning
517+
518+
# FPT versioning was removed as part of github/docs-content#5166
519+
520+
/rest/overview/resources-in-the-rest-api
521+
- /rest/overview/api-previews

0 commit comments

Comments
 (0)