Skip to content

Commit 9128550

Browse files
authored
Merge pull request #1631 from github/openapi-update-385310cf5995597094388cb13af0925d390eb851849478fed423bdbe69e5d550
Update OpenAPI 3.0 Descriptions
2 parents 7e24a7c + 4978029 commit 9128550

32 files changed

Lines changed: 348 additions & 320 deletions

descriptions/api.github.com/api.github.com.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6069,7 +6069,7 @@
60696069
},
60706070
"put": {
60716071
"summary": "Mark notifications as read",
6072-
"description": "Marks all notifications as \"read\" removes it from the [default view on GitHub](https://github.com/notifications). If the number of notifications is too large to complete in one request, you will receive a `202 Accepted` status and GitHub will run an asynchronous process to mark notifications as \"read.\" To check whether any \"unread\" notifications remain, you can use the [List notifications for the authenticated user](https://docs.github.com/rest/reference/activity#list-notifications-for-the-authenticated-user) endpoint and pass the query parameter `all=false`.",
6072+
"description": "Marks all notifications as \"read\" for the current user. If the number of notifications is too large to complete in one request, you will receive a `202 Accepted` status and GitHub will run an asynchronous process to mark notifications as \"read.\" To check whether any \"unread\" notifications remain, you can use the [List notifications for the authenticated user](https://docs.github.com/rest/reference/activity#list-notifications-for-the-authenticated-user) endpoint and pass the query parameter `all=false`.",
60736073
"tags": [
60746074
"activity"
60756075
],
@@ -6155,7 +6155,7 @@
61556155
"/notifications/threads/{thread_id}": {
61566156
"get": {
61576157
"summary": "Get a thread",
6158-
"description": "",
6158+
"description": "Gets information about a notification thread.",
61596159
"tags": [
61606160
"activity"
61616161
],
@@ -6204,7 +6204,7 @@
62046204
},
62056205
"patch": {
62066206
"summary": "Mark a thread as read",
6207-
"description": "",
6207+
"description": "Marks a thread as \"read.\" Marking a thread as \"read\" is equivalent to clicking a notification in your notification inbox on GitHub: https://github.com/notifications.",
62086208
"tags": [
62096209
"activity"
62106210
],
@@ -39497,7 +39497,7 @@
3949739497
"/repos/{owner}/{repo}/notifications": {
3949839498
"get": {
3949939499
"summary": "List repository notifications for the authenticated user",
39500-
"description": "List all notifications for the current user.",
39500+
"description": "Lists all notifications for the current user in the specified repository.",
3950139501
"tags": [
3950239502
"activity"
3950339503
],
@@ -39566,7 +39566,7 @@
3956639566
},
3956739567
"put": {
3956839568
"summary": "Mark repository notifications as read",
39569-
"description": "Marks all notifications in a repository as \"read\" removes them from the [default view on GitHub](https://github.com/notifications). If the number of notifications is too large to complete in one request, you will receive a `202 Accepted` status and GitHub will run an asynchronous process to mark notifications as \"read.\" To check whether any \"unread\" notifications remain, you can use the [List repository notifications for the authenticated user](https://docs.github.com/rest/reference/activity#list-repository-notifications-for-the-authenticated-user) endpoint and pass the query parameter `all=false`.",
39569+
"description": "Marks all notifications in a repository as \"read\" for the current user. If the number of notifications is too large to complete in one request, you will receive a `202 Accepted` status and GitHub will run an asynchronous process to mark notifications as \"read.\" To check whether any \"unread\" notifications remain, you can use the [List repository notifications for the authenticated user](https://docs.github.com/rest/reference/activity#list-repository-notifications-for-the-authenticated-user) endpoint and pass the query parameter `all=false`.",
3957039570
"tags": [
3957139571
"activity"
3957239572
],
@@ -110008,7 +110008,7 @@
110008110008
},
110009110009
"thread-id": {
110010110010
"name": "thread_id",
110011-
"description": "The unique identifier of the pull request thread.",
110011+
"description": "The unique identifier of the notification thread. This corresponds to the value returned in the `id` field when you retrieve notifications (for example with the [`GET /notifications` operation](https://docs.github.com/rest/reference/activity#list-notifications-for-the-authenticated-user)).",
110012110012
"in": "path",
110013110013
"required": true,
110014110014
"schema": {

descriptions/api.github.com/api.github.com.yaml

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4192,12 +4192,11 @@ paths:
41924192
subcategory: notifications
41934193
put:
41944194
summary: Mark notifications as read
4195-
description: Marks all notifications as "read" removes it from the [default
4196-
view on GitHub](https://github.com/notifications). If the number of notifications
4197-
is too large to complete in one request, you will receive a `202 Accepted`
4198-
status and GitHub will run an asynchronous process to mark notifications as
4199-
"read." To check whether any "unread" notifications remain, you can use the
4200-
[List notifications for the authenticated user](https://docs.github.com/rest/reference/activity#list-notifications-for-the-authenticated-user)
4195+
description: Marks all notifications as "read" for the current user. If the
4196+
number of notifications is too large to complete in one request, you will
4197+
receive a `202 Accepted` status and GitHub will run an asynchronous process
4198+
to mark notifications as "read." To check whether any "unread" notifications
4199+
remain, you can use the [List notifications for the authenticated user](https://docs.github.com/rest/reference/activity#list-notifications-for-the-authenticated-user)
42014200
endpoint and pass the query parameter `all=false`.
42024201
tags:
42034202
- activity
@@ -4258,7 +4257,7 @@ paths:
42584257
"/notifications/threads/{thread_id}":
42594258
get:
42604259
summary: Get a thread
4261-
description: ''
4260+
description: Gets information about a notification thread.
42624261
tags:
42634262
- activity
42644263
operationId: activity/get-thread
@@ -4290,7 +4289,8 @@ paths:
42904289
subcategory: notifications
42914290
patch:
42924291
summary: Mark a thread as read
4293-
description: ''
4292+
description: 'Marks a thread as "read." Marking a thread as "read" is equivalent
4293+
to clicking a notification in your notification inbox on GitHub: https://github.com/notifications.'
42944294
tags:
42954295
- activity
42964296
operationId: activity/mark-thread-as-read
@@ -28564,7 +28564,7 @@ paths:
2856428564
"/repos/{owner}/{repo}/notifications":
2856528565
get:
2856628566
summary: List repository notifications for the authenticated user
28567-
description: List all notifications for the current user.
28567+
description: Lists all notifications for the current user in the specified repository.
2856828568
tags:
2856928569
- activity
2857028570
operationId: activity/list-repo-notifications-for-authenticated-user
@@ -28602,11 +28602,10 @@ paths:
2860228602
subcategory: notifications
2860328603
put:
2860428604
summary: Mark repository notifications as read
28605-
description: Marks all notifications in a repository as "read" removes them
28606-
from the [default view on GitHub](https://github.com/notifications). If the
28607-
number of notifications is too large to complete in one request, you will
28608-
receive a `202 Accepted` status and GitHub will run an asynchronous process
28609-
to mark notifications as "read." To check whether any "unread" notifications
28605+
description: Marks all notifications in a repository as "read" for the current
28606+
user. If the number of notifications is too large to complete in one request,
28607+
you will receive a `202 Accepted` status and GitHub will run an asynchronous
28608+
process to mark notifications as "read." To check whether any "unread" notifications
2861028609
remain, you can use the [List repository notifications for the authenticated
2861128610
user](https://docs.github.com/rest/reference/activity#list-repository-notifications-for-the-authenticated-user)
2861228611
endpoint and pass the query parameter `all=false`.
@@ -84835,7 +84834,9 @@ components:
8483584834
format: date-time
8483684835
thread-id:
8483784836
name: thread_id
84838-
description: The unique identifier of the pull request thread.
84837+
description: The unique identifier of the notification thread. This corresponds
84838+
to the value returned in the `id` field when you retrieve notifications (for
84839+
example with the [`GET /notifications` operation](https://docs.github.com/rest/reference/activity#list-notifications-for-the-authenticated-user)).
8483984840
in: path
8484084841
required: true
8484184842
schema:

descriptions/api.github.com/dereferenced/api.github.com.deref.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46667,7 +46667,7 @@
4666746667
},
4666846668
"put": {
4666946669
"summary": "Mark notifications as read",
46670-
"description": "Marks all notifications as \"read\" removes it from the [default view on GitHub](https://github.com/notifications). If the number of notifications is too large to complete in one request, you will receive a `202 Accepted` status and GitHub will run an asynchronous process to mark notifications as \"read.\" To check whether any \"unread\" notifications remain, you can use the [List notifications for the authenticated user](https://docs.github.com/rest/reference/activity#list-notifications-for-the-authenticated-user) endpoint and pass the query parameter `all=false`.",
46670+
"description": "Marks all notifications as \"read\" for the current user. If the number of notifications is too large to complete in one request, you will receive a `202 Accepted` status and GitHub will run an asynchronous process to mark notifications as \"read.\" To check whether any \"unread\" notifications remain, you can use the [List notifications for the authenticated user](https://docs.github.com/rest/reference/activity#list-notifications-for-the-authenticated-user) endpoint and pass the query parameter `all=false`.",
4667146671
"tags": [
4667246672
"activity"
4667346673
],
@@ -46801,7 +46801,7 @@
4680146801
"/notifications/threads/{thread_id}": {
4680246802
"get": {
4680346803
"summary": "Get a thread",
46804-
"description": "",
46804+
"description": "Gets information about a notification thread.",
4680546805
"tags": [
4680646806
"activity"
4680746807
],
@@ -46813,7 +46813,7 @@
4681346813
"parameters": [
4681446814
{
4681546815
"name": "thread_id",
46816-
"description": "The unique identifier of the pull request thread.",
46816+
"description": "The unique identifier of the notification thread. This corresponds to the value returned in the `id` field when you retrieve notifications (for example with the [`GET /notifications` operation](https://docs.github.com/rest/reference/activity#list-notifications-for-the-authenticated-user)).",
4681746817
"in": "path",
4681846818
"required": true,
4681946819
"schema": {
@@ -47619,7 +47619,7 @@
4761947619
},
4762047620
"patch": {
4762147621
"summary": "Mark a thread as read",
47622-
"description": "",
47622+
"description": "Marks a thread as \"read.\" Marking a thread as \"read\" is equivalent to clicking a notification in your notification inbox on GitHub: https://github.com/notifications.",
4762347623
"tags": [
4762447624
"activity"
4762547625
],
@@ -47631,7 +47631,7 @@
4763147631
"parameters": [
4763247632
{
4763347633
"name": "thread_id",
47634-
"description": "The unique identifier of the pull request thread.",
47634+
"description": "The unique identifier of the notification thread. This corresponds to the value returned in the `id` field when you retrieve notifications (for example with the [`GET /notifications` operation](https://docs.github.com/rest/reference/activity#list-notifications-for-the-authenticated-user)).",
4763547635
"in": "path",
4763647636
"required": true,
4763747637
"schema": {
@@ -47696,7 +47696,7 @@
4769647696
"parameters": [
4769747697
{
4769847698
"name": "thread_id",
47699-
"description": "The unique identifier of the pull request thread.",
47699+
"description": "The unique identifier of the notification thread. This corresponds to the value returned in the `id` field when you retrieve notifications (for example with the [`GET /notifications` operation](https://docs.github.com/rest/reference/activity#list-notifications-for-the-authenticated-user)).",
4770047700
"in": "path",
4770147701
"required": true,
4770247702
"schema": {
@@ -47847,7 +47847,7 @@
4784747847
"parameters": [
4784847848
{
4784947849
"name": "thread_id",
47850-
"description": "The unique identifier of the pull request thread.",
47850+
"description": "The unique identifier of the notification thread. This corresponds to the value returned in the `id` field when you retrieve notifications (for example with the [`GET /notifications` operation](https://docs.github.com/rest/reference/activity#list-notifications-for-the-authenticated-user)).",
4785147851
"in": "path",
4785247852
"required": true,
4785347853
"schema": {
@@ -48022,7 +48022,7 @@
4802248022
"parameters": [
4802348023
{
4802448024
"name": "thread_id",
48025-
"description": "The unique identifier of the pull request thread.",
48025+
"description": "The unique identifier of the notification thread. This corresponds to the value returned in the `id` field when you retrieve notifications (for example with the [`GET /notifications` operation](https://docs.github.com/rest/reference/activity#list-notifications-for-the-authenticated-user)).",
4802648026
"in": "path",
4802748027
"required": true,
4802848028
"schema": {
@@ -294811,7 +294811,7 @@
294811294811
"/repos/{owner}/{repo}/notifications": {
294812294812
"get": {
294813294813
"summary": "List repository notifications for the authenticated user",
294814-
"description": "List all notifications for the current user.",
294814+
"description": "Lists all notifications for the current user in the specified repository.",
294815294815
"tags": [
294816294816
"activity"
294817294817
],
@@ -295654,7 +295654,7 @@
295654295654
},
295655295655
"put": {
295656295656
"summary": "Mark repository notifications as read",
295657-
"description": "Marks all notifications in a repository as \"read\" removes them from the [default view on GitHub](https://github.com/notifications). If the number of notifications is too large to complete in one request, you will receive a `202 Accepted` status and GitHub will run an asynchronous process to mark notifications as \"read.\" To check whether any \"unread\" notifications remain, you can use the [List repository notifications for the authenticated user](https://docs.github.com/rest/reference/activity#list-repository-notifications-for-the-authenticated-user) endpoint and pass the query parameter `all=false`.",
295657+
"description": "Marks all notifications in a repository as \"read\" for the current user. If the number of notifications is too large to complete in one request, you will receive a `202 Accepted` status and GitHub will run an asynchronous process to mark notifications as \"read.\" To check whether any \"unread\" notifications remain, you can use the [List repository notifications for the authenticated user](https://docs.github.com/rest/reference/activity#list-repository-notifications-for-the-authenticated-user) endpoint and pass the query parameter `all=false`.",
295658295658
"tags": [
295659295659
"activity"
295660295660
],

descriptions/api.github.com/dereferenced/api.github.com.deref.yaml

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13538,12 +13538,11 @@ paths:
1353813538
subcategory: notifications
1353913539
put:
1354013540
summary: Mark notifications as read
13541-
description: Marks all notifications as "read" removes it from the [default
13542-
view on GitHub](https://github.com/notifications). If the number of notifications
13543-
is too large to complete in one request, you will receive a `202 Accepted`
13544-
status and GitHub will run an asynchronous process to mark notifications as
13545-
"read." To check whether any "unread" notifications remain, you can use the
13546-
[List notifications for the authenticated user](https://docs.github.com/rest/reference/activity#list-notifications-for-the-authenticated-user)
13541+
description: Marks all notifications as "read" for the current user. If the
13542+
number of notifications is too large to complete in one request, you will
13543+
receive a `202 Accepted` status and GitHub will run an asynchronous process
13544+
to mark notifications as "read." To check whether any "unread" notifications
13545+
remain, you can use the [List notifications for the authenticated user](https://docs.github.com/rest/reference/activity#list-notifications-for-the-authenticated-user)
1354713546
endpoint and pass the query parameter `all=false`.
1354813547
tags:
1354913548
- activity
@@ -13603,7 +13602,7 @@ paths:
1360313602
"/notifications/threads/{thread_id}":
1360413603
get:
1360513604
summary: Get a thread
13606-
description: ''
13605+
description: Gets information about a notification thread.
1360713606
tags:
1360813607
- activity
1360913608
operationId: activity/get-thread
@@ -13613,7 +13612,9 @@ paths:
1361313612
parameters:
1361413613
- &95
1361513614
name: thread_id
13616-
description: The unique identifier of the pull request thread.
13615+
description: The unique identifier of the notification thread. This corresponds
13616+
to the value returned in the `id` field when you retrieve notifications
13617+
(for example with the [`GET /notifications` operation](https://docs.github.com/rest/reference/activity#list-notifications-for-the-authenticated-user)).
1361713618
in: path
1361813619
required: true
1361913620
schema:
@@ -13716,7 +13717,8 @@ paths:
1371613717
subcategory: notifications
1371713718
patch:
1371813719
summary: Mark a thread as read
13719-
description: ''
13720+
description: 'Marks a thread as "read." Marking a thread as "read" is equivalent
13721+
to clicking a notification in your notification inbox on GitHub: https://github.com/notifications.'
1372013722
tags:
1372113723
- activity
1372213724
operationId: activity/mark-thread-as-read
@@ -59100,7 +59102,7 @@ paths:
5910059102
"/repos/{owner}/{repo}/notifications":
5910159103
get:
5910259104
summary: List repository notifications for the authenticated user
59103-
description: List all notifications for the current user.
59105+
description: Lists all notifications for the current user in the specified repository.
5910459106
tags:
5910559107
- activity
5910659108
operationId: activity/list-repo-notifications-for-authenticated-user
@@ -59135,11 +59137,10 @@ paths:
5913559137
subcategory: notifications
5913659138
put:
5913759139
summary: Mark repository notifications as read
59138-
description: Marks all notifications in a repository as "read" removes them
59139-
from the [default view on GitHub](https://github.com/notifications). If the
59140-
number of notifications is too large to complete in one request, you will
59141-
receive a `202 Accepted` status and GitHub will run an asynchronous process
59142-
to mark notifications as "read." To check whether any "unread" notifications
59140+
description: Marks all notifications in a repository as "read" for the current
59141+
user. If the number of notifications is too large to complete in one request,
59142+
you will receive a `202 Accepted` status and GitHub will run an asynchronous
59143+
process to mark notifications as "read." To check whether any "unread" notifications
5914359144
remain, you can use the [List repository notifications for the authenticated
5914459145
user](https://docs.github.com/rest/reference/activity#list-repository-notifications-for-the-authenticated-user)
5914559146
endpoint and pass the query parameter `all=false`.

0 commit comments

Comments
 (0)